Skip to main content

Warn

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

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

Logs a message at level Warn on the standard logger.

Parameters

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