emtrace 0.1.0

Minimal overhead tracing/logging library for embedded, and resource constrained projects.
Documentation
1
2
3
4
5
6
7
8
9
use emtrace::{C_STYLE_FORMAT, expect, init, trace};

fn main() {
    expect!("True FalseTrue False");

    init(&mut std::io::stdout().lock()).unwrap();
    trace!("{} {}", bool: true, bool: false);
    trace!("%r %r", bool: true, bool: false, .formatter=C_STYLE_FORMAT);
}