urlogger 1.1.2

Lightweight colored logger: `log(level, message)` with `RUST_LOG` filtering.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Integration test that runs the main.rs demo.
//! Run with: `cargo test --test integration_test`

use urlogger::{LogLevel, log};

#[test]
fn main_rs_demo() {
    log(LogLevel::Trace, "Hello, world!");
    log(LogLevel::Debug, "Hello, world!");
    log(LogLevel::Info, "Hello, world!");
    log(LogLevel::Warn, "Hello, world!");
    log(LogLevel::Error, "Hello, world!");
}