Skip to main content

Error

Logs a message at the Error level using the standard logger.

def Error(
ctx: context.Context,
args: interface{}
) - > None

Logs a message at level Error on the standard logger.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the logging operation, which can carry deadlines, cancellation signals, and other request-scoped values.
argsinterface{}The arguments to be logged, which can be any type and will be formatted by the logger.

Returns

TypeDescription
NoneThis function does not return any value.