summaryrefslogtreecommitdiffstats
path: root/utils/config.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-11 09:12:51 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-11 09:12:51 -0600
commitb1251b93932adf616a996725448d0b77fad0d3c1 (patch)
tree4c5482d77364e660faeed3da8bc21e305c1b749f /utils/config.go
parent01d6a48419d351f92c40f8ed9352fa203cc46e4a (diff)
downloadchat-b1251b93932adf616a996725448d0b77fad0d3c1.tar.gz
chat-b1251b93932adf616a996725448d0b77fad0d3c1.tar.bz2
chat-b1251b93932adf616a996725448d0b77fad0d3c1.zip
Upgrade logging package
Diffstat (limited to 'utils/config.go')
-rw-r--r--utils/config.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/config.go b/utils/config.go
index 18bd15241..12d03b5de 100644
--- a/utils/config.go
+++ b/utils/config.go
@@ -11,7 +11,7 @@ import (
"path/filepath"
"strconv"
- l4g "code.google.com/p/log4go"
+ l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
)
@@ -77,7 +77,9 @@ func configureLog(s *model.LogSettings) {
level = l4g.ERROR
}
- l4g.AddFilter("stdout", level, l4g.NewConsoleLogWriter())
+ lw := l4g.NewConsoleLogWriter()
+ lw.SetFormat("[%D %T] [%L] %M")
+ l4g.AddFilter("stdout", level, lw)
}
if s.EnableFile {