Merge pull request #181 from mrunalp/time_stamps
Add timestamps to logs
This commit is contained in:
commit
cb7239caa6
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue