Fatal logs to the FATAL log. Arguments are handled in the manner of fmt.Print. It calls os.Exit() with exit code 1.
(args ...any)
| 86 | // Fatal logs to the FATAL log. Arguments are handled in the manner of fmt.Print. |
| 87 | // It calls os.Exit() with exit code 1. |
| 88 | func Fatal(args ...any) { |
| 89 | internal.LoggerV2Impl.Fatal(args...) |
| 90 | // Make sure fatal logs will exit. |
| 91 | os.Exit(1) |
| 92 | } |
| 93 | |
| 94 | // Fatalf logs to the FATAL log. Arguments are handled in the manner of fmt.Printf. |
| 95 | // It calls os.Exit() with exit code 1. |