Skip to main content

Warningf

Logs a message at level Warn on the standard logger.

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

Logs a message at level Warn on the standard logger. Call this function to record warning messages with formatted output.

Parameters

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