diff --git a/custom_logger.go b/custom_logger.go index 27467df..6b57b99 100644 --- a/custom_logger.go +++ b/custom_logger.go @@ -16,6 +16,10 @@ type CustomLogger struct { handlers []Handler } +func init() { + slog.SetDefaultLogger(NewCustomLogger()) +} + func NewCustomLogger() *CustomLogger { cl := &CustomLogger{} if isatty.IsTerminal(os.Stdout.Fd()) {