Skip to content

Commit

Permalink
log/stdlog: log timestamp with microseconds resolution
Browse files Browse the repository at this point in the history
Fixes #454
  • Loading branch information
Choraden authored and mmatczuk committed Oct 5, 2023
1 parent 502fef8 commit 5c12190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion log/stdlog/stdlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func New(cfg *flog.Config) Logger {
w = cfg.File
}
return Logger{
log: log.New(w, "", log.Ldate|log.Ltime|log.LUTC),
log: log.New(w, "", log.Ldate|log.Ltime|log.Lmicroseconds|log.LUTC),
level: cfg.Level,
}
}
Expand Down

0 comments on commit 5c12190

Please sign in to comment.