(level slog.Level, msg string)
| 131 | } |
| 132 | |
| 133 | func (l *Logger) log(level slog.Level, msg string) { |
| 134 | if l.isNil() { |
| 135 | nilLogger.sl.Log(context.Background(), level, msg) |
| 136 | return |
| 137 | } |
| 138 | |
| 139 | if !l.muted.Load() { |
| 140 | l.sl.Log(context.Background(), level, msg) |
| 141 | } |
| 142 | } |
| 143 | |
| 144 | func (l *Logger) canLog(level slog.Level) bool { |
| 145 | if !Level.Enabled(level) { |
no test coverage detected