Skip to main content

Printf

Logs a message at level Info on the standard logger, using the provided context, format string, and arguments.

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

Logs a message at level Info on the standard logger.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the logger operation.
formatstringThe format string for the log message, similar to C's printf.
args...interface{}The arguments to be formatted according to the format string.