pub fn json()Expand description
Turns on the json defaults which is one line of flattened json per event with RFC3339 UTC time, activating it globally on all threads.
§Panics
Will panic if a global default is already set
§Examples
traceon::json();
traceon::info!("a json message");output prettified:
{
"time": "2023-01-02T04:46:12.715798+00:00",
"level": "INFO",
"message": "a json message"
}