sheen 0.3.0

A polished, colorful logging library for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use sheen::{Level, Logger};

fn main() {
    // sheen as the log backend
    Logger::new().level(Level::Trace).init().unwrap();

    // These are log crate macros, not sheen macros
    log::trace!("starting up");
    log::debug!("loading configuration");
    log::info!("server listening on port 3000");
    log::warn!("cache is nearly full");
    log::error!("failed to connect to database");
}