Skip to content

Fix docs for context.Timestamp#554

Merged
rs merged 1 commit intors:masterfrom
counterposition:fix/doc/context.timestamp
Jun 11, 2023
Merged

Fix docs for context.Timestamp#554
rs merged 1 commit intors:masterfrom
counterposition:fix/doc/context.timestamp

Conversation

@counterposition
Copy link
Contributor

@counterposition counterposition commented Jun 10, 2023

Contrary to the documentation for zerolog.Context.Timestamp, the following does not log timestamps in Unix format by default:

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"}

@rs rs merged commit b662f08 into rs:master Jun 11, 2023
madkins23 pushed a commit to madkins23/zerolog that referenced this pull request Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants