diff --git a/log/log.go b/log/log.go index df3760a8..d94f489d 100644 --- a/log/log.go +++ b/log/log.go @@ -183,7 +183,6 @@ func WithFields(fields map[string]interface{}) *logrus.Entry { // New returns a new Logger instance. func New() *Logger { - return &Logger{ &logrus.Logger{ Out: os.Stderr, @@ -218,7 +217,9 @@ func (l *Logger) SetLevel(v string) { func (l *Logger) SetFormat(v string) { switch v { case "json": - l.Formatter = &logrus.JSONFormatter{} + l.Formatter = &logrus.JSONFormatter{ + TimestampFormat: time.RFC3339, + } case "text": l.Formatter = &TextFormatter{ TimestampFormat: time.RFC3339,