Mute sets the default logger to a discard logger muting all log output
()
| 86 | |
| 87 | // Mute sets the default logger to a discard logger muting all log output |
| 88 | func Mute() { |
| 89 | setDefaultHandler(slog.DiscardHandler) |
| 90 | } |
| 91 | |
| 92 | // Unmute restores the default logger to the one created in [Init] |
| 93 | func Unmute() { |