Function quick_init

Source
pub fn quick_init() -> Result<(), SetLoggerError>
Expand description

only a logger init without any ohters

ยงExamples

use easy_logger::quick_init;
use log::{log, Level};
fn main() {
    quick_init();
    //the next line of code could be ignored, 
    //and default level will allow you to log message whose level greater than debug
    log::set_max_level(Level::Trace.to_level_filter());
    info!("hello easy-logger");
}