Skip to main content

Warnln

Logs a message at level Warn on the standard logger.

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

Logs a message at level Warn on the standard logger. This function is used to output warning messages to the application's log.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the logger operation, typically used to carry request-scoped values, deadlines, and cancellation signals.
args...interface{}The arguments to be logged. These will be formatted and output as a warning message.