Skip to content

Commit

Permalink
Update handler_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusOllah committed May 24, 2024
1 parent c38983a commit 88f696e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import (
)

func Example() {
slog.SetDefault(slog.New(slogcolor.NewHandler(os.Stderr, slogcolor.DefaultOptions)))
opts := slogcolor.DefaultOptions
opts.Level = slog.LevelDebug
slog.SetDefault(slog.New(slogcolor.NewHandler(os.Stderr, opts)))

slog.Info("Initializing")
slog.Debug("Init done", "duration", 500*time.Millisecond)
Expand Down

0 comments on commit 88f696e

Please sign in to comment.