pretty_logger 0.1.8

A pretty logger similar to pretty_env_logger, but configured from the init function instead of from an environment variable.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#[macro_use]
extern crate log;
extern crate pretty_logger;

fn main() {
    pretty_logger::init_to_defaults().unwrap();

    error!("Error");
    warn!("Warn");
    info!("Info");
    debug!("Debug");
    trace!("Trace");
}