console

Function console 

Source
pub fn console<S: LevelInto>(level: S) -> SimpleResult<()>
Expand description

Provide init simple-log instance with stdout console on terminal.

Method receive log level one of [log_level] mod.

#[macro_use]
extern crate simple_log;

fn main() -> Result<(), String> {
    simple_log::console("debug")?;

    debug!("test console debug");
    info!("test console info");
    Ok(())
}