Skip to content

Commit 864b19d

Browse files
committed
feat(server): logs prints timestamp
1 parent f3447da commit 864b19d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/viper.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ func ViperConfig(opts *CommandLineConfig) {
3030
}
3131
pflag.Parse()
3232
log.SetFormatter(&log.TextFormatter{
33+
FullTimestamp: true,
34+
TimestampFormat: "2006-01-02 15:04:05",
3335
ForceColors: true,
3436
EnvironmentOverrideColors: true,
3537
})

0 commit comments

Comments
 (0)