Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
subscriber: use
display_timestamp
and display_level
in `Json::for…
…mat_event` (#1463) ## Motivation It should be possible to remove `timestamp` and `level` fields when using json formatting. As of now this has no effect: ```rs let subscriber = tracing_subscriber::fmt() .with_level(false) .without_time() .json() .finish(); ``` ## Solution Use the existing `display_timestamp` and `display_level` fields to conditionally serialize `timestamp` and `level`.
- Loading branch information