From 27ec65650dcfe21e4d5619d242d62b59c5d3514b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Sat, 2 Nov 2024 01:12:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=BF=E6=8D=A2go=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=9A=84logger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/bootstrap/logger.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/bootstrap/logger.go b/internal/bootstrap/logger.go index b7eac073..171853c8 100644 --- a/internal/bootstrap/logger.go +++ b/internal/bootstrap/logger.go @@ -37,4 +37,5 @@ func initLogger() { logger := zap.New(core) zap.ReplaceGlobals(logger) app.Logger = slog.New(zapslog.NewHandler(logger.Core())) + slog.SetDefault(app.Logger) }