diff --git a/logging/log.go b/logging/log.go index d9b79eb9aa..48f83c1b9e 100644 --- a/logging/log.go +++ b/logging/log.go @@ -308,7 +308,7 @@ func (l logger) SetOutput(w io.Writer) { } func (l logger) setOutput(w io.Writer) { - l.entry.Logger.Out = w + l.entry.Logger.SetOutput(w) } func (l logger) getOutput() io.Writer {