Skip to main content

Errorln

Logs a message at level Error on the standard logger.

def Errorln(
ctx: context.Context,
args: ...interface{}
)

Logs a message at level Error on the standard logger. This function is used to record error conditions or failures within the application.

Parameters​

NameTypeDescription
ctxcontext.ContextThe context for the logging operation, which can carry deadlines, cancellation signals, and other request-scoped values.
args...interface{}The arguments to be logged, which will be printed with a newline character at the end.