log2 0.3.1

log2 is an out-of-the-box logging library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use log2::*;

// cargo test -- --nocapture
#[test]
fn log_to_stdout() {
    run!();
    trace!("send order request to server");
    debug!("receive order response");
    info!("order was executed");
    warn!("network speed is slow");
    error!("network connection was broken");
}