diff options
Diffstat (limited to 'logging.go')
-rw-r--r-- | logging.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/logging.go b/logging.go index 1017293ff..8f3f84261 100644 --- a/logging.go +++ b/logging.go @@ -423,7 +423,8 @@ func (cl *CustomLog) provision(ctx Context, logging *Logging) error { // only allow colorized output if this log is going to stdout or stderr var colorize bool switch cl.writerOpener.(type) { - case *StdoutWriter, *StderrWriter: + case StdoutWriter, StderrWriter, + *StdoutWriter, *StderrWriter: colorize = true } cl.encoder = newDefaultProductionLogEncoder(colorize) |