Skip to main content

Fatalf

Logs a message at level Fatal on the standard logger.

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

Logs a message at level Fatal on the standard logger. This function is used to indicate a critical error that causes the program to terminate.

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.