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
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for the logger, used to retrieve the appropriate logger instance. |
| format | string | The format string for the log message, similar to fmt.Printf. |
| args | ...interface{} | Arguments to be formatted according to the format string. |