tiny-tracing 0.4.0

Simple rusty log library (tracing-subscriber wrapper)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Omitting the timestamp, for platforms that already add their own (journald,
//! container runtimes, …).
//!
//! Run with: `cargo run --example no_timestamp`

use tiny_tracing::{Logger, info};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let _guard = Logger::new().with_timestamp(false).init()?;

    info!("this line has no timestamp");
    Ok(())
}