kamu-logging 1.2.2

Small helper crate to configure structured logging for IMMER's services using the tracing ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Minimal example: zero-config init.
//!
//! Run with `cargo run --example minimal`. Set `RUST_LOG=debug` to see the
//! debug event.

use kamu_logging::{debug, info, init};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    init()?;
    info!("hello from kamu-logging");
    debug!(value = 42, "structured field example");
    Ok(())
}