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, used to retrieve the appropriate logger.
args...interface{}The arguments to be logged at the Warn level. These can be any type and will be formatted by the logger.