summaryrefslogtreecommitdiffhomepage
path: root/logging.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2020-04-09 13:06:06 -0600
committerMatthew Holt <[email protected]>2020-04-09 13:06:06 -0600
commit6e4132eb89ccf399c97c9439f6f9ff9fcac21956 (patch)
treee90c6a2e4398496fa1c72cc6ead972f6efc26495 /logging.go
parentd89ad2fd5ba8de6dee0ff420458b634431da9b89 (diff)
downloadcaddy-6e4132eb89ccf399c97c9439f6f9ff9fcac21956.tar.gz
caddy-6e4132eb89ccf399c97c9439f6f9ff9fcac21956.zip
logging: Colorize output in all cases of stdout/stderr
Diffstat (limited to 'logging.go')
-rw-r--r--logging.go3
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)