Skip to main content

Warnf

Logs a message at level Warn on the standard logger.

def Warnf(
ctx: context.Context,
format: string,
args: ...interface{}
)

Logs a message at level Warn on the standard logger. This function allows for formatted warning messages to be outputted to the logger associated with the provided context.

Parameters​

NameTypeDescription
ctxcontext.ContextThe context object used to retrieve the logger instance.
formatstringThe format string for the warning message, similar to fmt.Printf.
args...interface{}Arguments to be formatted according to the format string.