Skip to content

Commit

Permalink
Use JSON everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
federicotdn committed Dec 20, 2024
1 parent 51e349a commit f0a9aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ import (
)

func main() {
// write logs as logfmt
slog.SetDefault(slog.New(slog.NewTextHandler(os.Stderr, &slog.HandlerOptions{
// write logs as JSON
slog.SetDefault(slog.New(slog.NewJSONHandler(os.Stderr, &slog.HandlerOptions{
Level: logging.GetLogLevel(),
})))

Expand Down

0 comments on commit f0a9aba

Please sign in to comment.