dlt_log 1.0.0

Log crate adapter for integrating with the Diagnostic Log and Trace (DLT) system
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
extern crate dlt_log;
extern crate log;

fn main() {
    // initialize DLT logger, ignore errors
    let _ = dlt_log::init("TEST", "Rust tests", "EXPL", "Smoke test example");

    log::trace!("Tracing the untraceable!");
    log::debug!("Debugging the debugger!");
    log::info!("Information overload: {} + {} = {}", 2, 2, 4);
    log::warn!("Warning: Low on coffee!");
    log::error!("Error: Something went terribly right!");
}