set default slog

This commit is contained in:
Elio Bischof
2024-11-29 01:00:01 +01:00
parent 3261105fdd
commit 1ce51a5212
7 changed files with 21 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
package ready
import (
"log/slog"
"time"
"github.com/mitchellh/mapstructure"
@@ -35,5 +36,7 @@ func MustNewConfig(v *viper.Viper) *Config {
err = config.Log.SetLogger()
logging.OnError(err).Fatal("unable to set logger")
slog.SetDefault(config.Log.Slog())
return config
}