Skip to content

Commit

Permalink
slogutil: default
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Oct 1, 2024
1 parent a79518e commit f3def15
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions logutil/slogutil/slogutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ func New(c *Config) (l *slog.Logger) {
}

// newDefault returns a new default slog logger set up with the given options.
//
// TODO(d.kolyshev): Replace log level name for [LevelTrace].
func newDefault(output io.Writer, lvl slog.Level, addTimestamp bool) (l *slog.Logger) {
h := NewLevelHandler(lvl, slog.Default().Handler())
log.SetOutput(output)
Expand Down

0 comments on commit f3def15

Please sign in to comment.