2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

feat: 替换go默认的logger

This commit is contained in:
耗子
2024-11-02 01:12:17 +08:00
parent e2345a8285
commit 27ec65650d

View File

@@ -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)
}