log: add SetOutput function

This commit is contained in:
Leo Balduf 2017-08-24 12:48:13 +02:00
parent d026424038
commit 3168f50601

View file

@ -4,6 +4,7 @@ package log
import (
"fmt"
"io"
"github.com/sirupsen/logrus"
)
@ -23,6 +24,11 @@ func SetFormatter(to logrus.Formatter) {
l.Formatter = to
}
// SetOutput sets the output.
func SetOutput(to io.Writer) {
l.Out = to
}
// Fields is a map of logging fields.
type Fields map[string]interface{}