Commit d16c2a7d
d16c2a7da5e5Merged
zhiliaev <[email protected]> ยท 4 years ago ยท 1 file ยท ~1 modified
Description
feat: disable emoji with color
Details
- Commit
- d16c2a7da5e5
- Parent
- 34691c289ad0
pkg/log/log.gomodifiedView file
@@ -121,7 +121,12 @@
121121
cfg := &formatter.Config{122122
Color: l.color,123123
}124-
if l.timestamps {124+
125+
if !l.color && l.timestamps {126+
cfg.LogFormat = "[%time%] [%lvl%]: %msg%"127+
} else if !l.color {128+
cfg.LogFormat = "[%lvl%]: %msg%"129+
} else if l.timestamps {125130
cfg.LogFormat = "[%time%] [%emoji% aka %lvl%]: %msg%"126131
}127132