Skip to content

Commit a45877d

Browse files
authored
feat: increase timestamp precision in logs (#297)
1 parent dbd093c commit a45877d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ func main() {
3838
output = zerolog.ConsoleWriter{Out: os.Stdout}
3939
}
4040

41+
// General settings for logging
42+
zerolog.TimeFieldFormat = time.RFC3339Nano
4143
zerolog.SetGlobalLevel(zerolog.InfoLevel)
4244
if gin.IsDebugging() {
4345
zerolog.SetGlobalLevel(zerolog.DebugLevel)

0 commit comments

Comments
 (0)