Merge pull request #181 from mrunalp/time_stamps

Add timestamps to logs
This commit is contained in:
Antonio Murdaca 2016-10-26 22:12:25 +02:00 committed by GitHub
commit cb7239caa6

View file

@ -149,6 +149,13 @@ func main() {
return err
}
cf := &logrus.TextFormatter{
TimestampFormat: "2006-01-02 15:04:05.000000000Z07:00",
FullTimestamp: true,
}
logrus.SetFormatter(cf)
if c.GlobalBool("debug") {
logrus.SetLevel(logrus.DebugLevel)
}