Replace the pattern of recreating the logger handler when enabling debug logging. Now use slog.LevelVar which allows changing the log level dynamically without recreating the handler or logger instance. closes #8 |
||
|---|---|---|
| .. | ||
| logger_test.go | ||
| logger.go | ||
Replace the pattern of recreating the logger handler when enabling debug logging. Now use slog.LevelVar which allows changing the log level dynamically without recreating the handler or logger instance. closes #8 |
||
|---|---|---|
| .. | ||
| logger_test.go | ||
| logger.go | ||