We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cb368d commit 1a56963Copy full SHA for 1a56963
server/core/internal/zap.go
@@ -54,7 +54,7 @@ func (z *_zap) GetEncoderCore(l zapcore.Level, level zap.LevelEnablerFunc) zapco
54
// CustomTimeEncoder 自定义日志输出时间格式
55
// Author [SliverHorn](https://github.com/SliverHorn)
56
func (z *_zap) CustomTimeEncoder(t time.Time, encoder zapcore.PrimitiveArrayEncoder) {
57
- encoder.AppendString(t.Format(global.GVA_CONFIG.Zap.Prefix + "2006/01/02 - 15:04:05.000"))
+ encoder.AppendString(global.GVA_CONFIG.Zap.Prefix + t.Format("2006/01/02 - 15:04:05.000"))
58
}
59
60
// GetZapCores 根据配置文件的Level获取 []zapcore.Core
0 commit comments