We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9f7381 commit 42487fbCopy full SHA for 42487fb
kratos/zap/zap.go
@@ -77,8 +77,8 @@ func New(opts ...Option) *zap.Logger {
77
cfg := zap.NewProductionConfig()
78
79
// 防止 kratos log 的 key 重复; took https://github.com/go-kratos/kratos/issues/1722
80
+ // cfg.EncoderConfig.MessageKey = "" // Updated@2025-03-14 msg key lost; took https://github.com/go-kratos/kratos/pull/3171
81
cfg.EncoderConfig.TimeKey = ""
- cfg.EncoderConfig.MessageKey = ""
82
cfg.EncoderConfig.CallerKey = ""
83
// 默认输出到 stdout
84
cfg.OutputPaths = []string{"stdout"}
0 commit comments