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
10
11
use emtrace::{C_STYLE_FORMAT, init, trace, traceln};

fn main() {
    init(&mut std::io::stdout().lock()).unwrap();

    trace!("{}", i32: 0);
    trace!("Yeeha {} {}\n", i32: 9, i32: 10);
    traceln!("Yeeha {}", i32: 9);
    traceln!("C style formatting: %i", i32: 9, .formatter=C_STYLE_FORMAT);
    traceln!("No formatting: {} %i")
}