We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd33466 commit a8ef461Copy full SHA for a8ef461
pkg/cfg/logging.go
@@ -5,6 +5,7 @@ import (
5
"io"
6
"os"
7
"path/filepath"
8
+ "time"
9
10
log "github.com/sirupsen/logrus"
11
"github.com/sirupsen/logrus/hooks/writer"
@@ -90,7 +91,7 @@ func (c *LoggingConfig) setup(fileName string) error {
90
91
return nil
92
}
93
- log.SetFormatter(&log.TextFormatter{TimestampFormat: "02-01-2006 15:04:05", FullTimestamp: true})
94
+ log.SetFormatter(&log.TextFormatter{TimestampFormat: time.RFC3339, FullTimestamp: true})
95
96
logger, err := c.LoggerForFile(fileName)
97
if err != nil {
0 commit comments