mirror of
https://git.um-react.app/um/cli.git
synced 2026-11-25 23:06:58 +00:00
refactor: code cleaning
This commit is contained in:
7 files changed
+41
-30
No files matched your search
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
func NewZapLogger() (*zap.Logger, error) {
|
||||
zapCfg := zap.NewDevelopmentConfig()
|
||||
zapCfg.DisableStacktrace = true
|
||||
zapCfg.EncoderConfig.EncodeLevel = zapcore.CapitalColorLevelEncoder
|
||||
zapCfg.EncoderConfig.EncodeTime = zapcore.TimeEncoderOfLayout("2006/01/02 15:04:05.000")
|
||||
return zapCfg.Build()
|
||||
|
||||
Reference in new issue
Block a user