Skip to content

Commit

Permalink
logging: JSON format now uses RFC3339Nano which includes milliseconds
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Reagor committed Feb 22, 2018
1 parent 7208e02 commit a988b75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion config/logger/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func (l *Config) Init() error {
case "text":
formatter = &logrus.TextFormatter{}
case "json":
formatter = &logrus.JSONFormatter{}
formatter = &logrus.JSONFormatter{
TimestampFormat: time.RFC3339Nano,
}
case "default":
formatter = &DefaultLogFormatter{
TimestampFormat: time.RFC3339Nano,
Expand Down

0 comments on commit a988b75

Please sign in to comment.