From f0a9ababf890d24e69869c0683367403007fddca Mon Sep 17 00:00:00 2001 From: Federico Tedin Date: Fri, 20 Dec 2024 11:30:59 +0100 Subject: [PATCH] Use JSON everywhere --- cmd/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/main.go b/cmd/main.go index 10a0301..dc2a6eb 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -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(), })))