Skip to main content

Warningf

Logs a message at level Warn on the standard logger.

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

Logs a message at level Warn on the standard logger. This function is used to record warning messages with formatted output.

Parameters​

NameTypeDescription
ctxcontext.ContextThe context for the log operation, which can carry deadlines, cancellation signals, and other request-scoped values.
formatstringThe format string for the log message, similar to fmt.Printf.
args...interface{}The arguments to be formatted according to the format string.

Returns​

TypeDescription
nullThis function does not return any value.