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 logging operation, which can carry deadlines, cancellation signals, and other request-scoped values.
argsinterface{}The arguments to be logged. These can be any values that the logger can handle, typically formatted into a log message.

Returns

TypeDescription
nullThis function does not return any value as it typically terminates the application.