Skip to main content

Fatal

Logs a message at level Fatal on the standard logger.

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

Logs a message at level Fatal on the standard logger. This function is used to record critical errors that lead to application termination.

Parameters​

NameTypeDescription
ctxcontext.ContextThe context for the logger, which can carry request-scoped values and deadlines.
args...interface{}The arguments to be logged, which can be any type and will be formatted by the logger.

Returns​

TypeDescription
nullThis function does not return any value; it terminates the program after logging.