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 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
| Type | Description |
|---|---|
null | This function does not return any value; it terminates the program after logging. |