From 7dd93aa395bf502a02013833d76bc4de9be52958 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Tue, 18 Apr 2023 13:11:40 +0800 Subject: [PATCH] zap --- pkg/common/log/zap.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/common/log/zap.go b/pkg/common/log/zap.go index ae018d865..32986d029 100644 --- a/pkg/common/log/zap.go +++ b/pkg/common/log/zap.go @@ -101,6 +101,7 @@ func (l *ZapLogger) cores(isStdout bool, isJson bool, logLocation string, rotate c.MessageKey = "msg" c.LevelKey = "level" c.TimeKey = "time" + c.CallerKey = "caller" var fileEncoder zapcore.Encoder if isJson {