Fatalf logs to the FATAL log. Arguments are handled in the manner of fmt.Printf. It calls os.Exit() with exit code 1.
(format string, args ...any)
| 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. |
| 96 | func Fatalf(format string, args ...any) { |
| 97 | internal.LoggerV2Impl.Fatalf(format, args...) |
| 98 | // Make sure fatal logs will exit. |
| 99 | os.Exit(1) |
| 100 | } |
| 101 | |
| 102 | // Fatalln logs to the FATAL log. Arguments are handled in the manner of fmt.Println. |
| 103 | // It calls os.Exit() with exit code 1. |