Files
sablier/config/logging.go
Alexis Couvreur 8844a36e4a refactor(logging): use slog instead of logrus (#501)
Everything uses slog now and the logger is part of every struct
2025-02-02 23:01:51 -05:00

17 lines
248 B
Go

package config
import (
"log/slog"
"strings"
)
type Logging struct {
Level string `mapstructure:"LEVEL" yaml:"level" default:"info"`
}
func NewLoggingConfig() Logging {
return Logging{
Level: strings.ToLower(slog.LevelInfo.String()),
}
}