From 3168f506014aced846a9fc30eeeca30fa06d8708 Mon Sep 17 00:00:00 2001
From: Leo Balduf <baldufle@hu-berlin.de>
Date: Thu, 24 Aug 2017 12:48:13 +0200
Subject: [PATCH] log: add SetOutput function

---
 pkg/log/log.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/pkg/log/log.go b/pkg/log/log.go
index eab3d15..597948b 100644
--- a/pkg/log/log.go
+++ b/pkg/log/log.go
@@ -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{}