From 6e4132eb89ccf399c97c9439f6f9ff9fcac21956 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 9 Apr 2020 13:06:06 -0600 Subject: [PATCH] logging: Colorize output in all cases of stdout/stderr --- logging.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/logging.go b/logging.go index 1017293f..8f3f8426 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)