We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7a13cd7 commit f38c75dCopy full SHA for f38c75d
logging.go
@@ -94,6 +94,11 @@ func (l *Logger) Fatal(msg string) {
94
os.Exit(1)
95
}
96
97
+func (l *Logger) Fatalf(msg string, a ...any) {
98
+ l.doLog(slog.LevelError, msg, a...) //nolint:govet
99
+ os.Exit(1)
100
+}
101
+
102
func (l *Logger) IsEnabled(lvl slog.Level) bool {
103
ctx := context.Background()
104
return l.Log.Handler().Enabled(ctx, lvl)
0 commit comments