Closed counterposition closed 1 year ago
Contrary to the documentation for zerolog.Context.Timestamp, the following does not log timestamps in Unix format by default:
zerolog.Context.Timestamp
log := zerolog.New(os.Stderr).With().Timestamp().Logger() logger.Info().Msg("hello, world") // output: {"level":"info","time":"2023-06-09T22:43:30-04:00","message":"hello world"}
Contrary to the documentation for
zerolog.Context.Timestamp
, the following does not log timestamps in Unix format by default: