A garishly colored and extremely simple logger - the best kind.
[dependencies]
badlog = "1.1"
log = "0.4"
- Call one of the initializers.
- Use the standard log crate macros.
- That's it!
#[macro_use] extern crate log;
extern crate badlog;
fn main() {
badlog::init_from_env("LOG_LEVEL");
trace!("Unimportant details.");
debug!("Debugging information.");
info!("Hello, World!");
warn!("Uh, captain, I think we're going down...");
error!("IT'S THE END.");
}
MIT.