SetLogLevel dynamically sets the log level
(level slog.Level)
| 161 | |
| 162 | // SetLogLevel dynamically sets the log level |
| 163 | func SetLogLevel(level slog.Level) { |
| 164 | // Note: slog doesn't support dynamic level changes easily |
| 165 | // This would require reinitializing the handler |
| 166 | config := DefaultLogConfig() |
| 167 | config.Level = level |
| 168 | InitLogger(config) |
| 169 | } |
nothing calls this directly
no test coverage detected