Skip to main content

Panicf

Logs a message at level Panic on the standard logger.

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

Logs a message at level Panic on the standard logger. This function is used to log critical errors that should cause the program to terminate.

Parameters

NameTypeDescription
ctxcontext.ContextThe context for the logging 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{}Arguments to be formatted according to the format string.