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
12
use traceon::{info, instrument};

#[instrument]
async fn add(a: i32, b: i32) {
    info!("result = {}", a + b);
}

#[tokio::main]
async fn main() {
    traceon::builder().on();
    add(5, 10).await;
}