Skip to content

Commit

Permalink
Merge pull request #710 from stellar/support-log-time-format
Browse files Browse the repository at this point in the history
Change default time format to display miliseconds and full time in TTY
  • Loading branch information
brahman81 authored Oct 8, 2018
2 parents 0aa87d0 + e9dae3f commit 92db8e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions support/log/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ type LogglyHook struct {
func New() *Entry {
l := logrus.New()
l.Level = logrus.WarnLevel
l.Formatter.(*logrus.TextFormatter).FullTimestamp = true
l.Formatter.(*logrus.TextFormatter).TimestampFormat = "2006-01-02T15:04:05.000Z07:00"
return &Entry{Entry: *logrus.NewEntry(l).WithField("pid", os.Getpid())}
}

Expand Down

0 comments on commit 92db8e1

Please sign in to comment.