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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the logging operation, which can carry deadlines, cancellation signals, and other request-scoped values. |
| args | interface{} | The arguments to be logged. These can be any values that the logger can handle, typically formatted into a log message. |
Returns
| Type | Description |
|---|---|
null | This function does not return any value as it typically terminates the application. |