diff --git a/pkg/cfg/logging.go b/pkg/cfg/logging.go index ff9786f..3fd70e1 100644 --- a/pkg/cfg/logging.go +++ b/pkg/cfg/logging.go @@ -5,6 +5,7 @@ import ( "io" "os" "path/filepath" + "time" log "github.com/sirupsen/logrus" "github.com/sirupsen/logrus/hooks/writer" @@ -90,7 +91,7 @@ func (c *LoggingConfig) setup(fileName string) error { return nil } - log.SetFormatter(&log.TextFormatter{TimestampFormat: "02-01-2006 15:04:05", FullTimestamp: true}) + log.SetFormatter(&log.TextFormatter{TimestampFormat: time.RFC3339, FullTimestamp: true}) logger, err := c.LoggerForFile(fileName) if err != nil {