sp_log 0.2.1

A simple and easy way of logging for Rust's log crate
Documentation
#[cfg(feature = "termcolor")]
use log::*;
#[cfg(feature = "termcolor")]
use sp_log::*;

#[cfg(feature = "termcolor")]
fn main() {
    TermLogger::init(
        LevelFilter::Trace,
        Config::default(),
        TerminalMode::Stdout,
        ColorChoice::Auto,
    )
    .unwrap();
    error!("Red error");
    warn!("Yellow warning");
    info!("Blue info");
    debug!("Cyan debug");
    trace!("White trace");
}

#[cfg(not(feature = "termcolor"))]
fn main() {
    println!("this example requires the termcolor feature.");
}