A simple logger build on top off env_logger. It is configured via an environment variable and writes to standard error with nice colored output for log levels.
extern crate pretty_env_logger;
#[macro_use] extern crate log;
fn main() {
pretty_env_logger::init().unwrap();
info!("such information");
warn!("o_O");
error!("much error");
}
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)