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