traceon 0.4.0

An easy to use log and tracing formatter with a flattened json or pretty output.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use tracing_subscriber::{EnvFilter, prelude::*};

fn main() {
    tracing_subscriber::registry()
        .with(traceon::builder())
        .with(EnvFilter::new("error"))
        .init();

    tracing::info!("info log message won't write to stdout");
    tracing::error!("only error messages will write to stdout");
}