Skip to content

Commit

Permalink
Use ISO8601 for logs to get better resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
fireflycons committed Apr 11, 2023
1 parent 654a5c7 commit 8f75a0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ func main() {
opts := zap.Options{
Development: true,
Level: zapcore.Level(-10),
TimeEncoder: zapcore.RFC3339TimeEncoder,
TimeEncoder: zapcore.ISO8601TimeEncoder,
}
opts.BindFlags(flag.CommandLine)
flag.Parse()
Expand Down

0 comments on commit 8f75a0b

Please sign in to comment.