Add levels to file encoder
This commit is contained in:
@@ -40,6 +40,7 @@ func NewLogger(logPath string) *Logger {
|
|||||||
CallerKey: "",
|
CallerKey: "",
|
||||||
StacktraceKey: "",
|
StacktraceKey: "",
|
||||||
LineEnding: zapcore.DefaultLineEnding,
|
LineEnding: zapcore.DefaultLineEnding,
|
||||||
|
EncodeLevel: zapcore.CapitalLevelEncoder,
|
||||||
EncodeTime: zapcore.ISO8601TimeEncoder,
|
EncodeTime: zapcore.ISO8601TimeEncoder,
|
||||||
EncodeDuration: zapcore.StringDurationEncoder,
|
EncodeDuration: zapcore.StringDurationEncoder,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user