feat(log): enable override coloring based on CLICOLOR and CLICOLOR_FORCE (#2657)
This commit is contained in:
parent
f5b92e1ae2
commit
a2e6c7674d
@ -38,7 +38,8 @@ func NewStderrLog(name string) *StderrLog {
|
||||
|
||||
sl.logger.Out = StdErr
|
||||
formatter := &logrus.TextFormatter{
|
||||
DisableTimestamp: true, // `INFO[0007] msg` -> `INFO msg`
|
||||
DisableTimestamp: true, // `INFO[0007] msg` -> `INFO msg`
|
||||
EnvironmentOverrideColors: true,
|
||||
}
|
||||
if os.Getenv("LOG_TIMESTAMP") == "1" {
|
||||
formatter.DisableTimestamp = false
|
||||
|
Loading…
x
Reference in New Issue
Block a user