Function mowl::init_with_level [] [src]

pub fn init_with_level(log_level: LogLevel) -> Result<()>

Initializes the global logger with a specific max_log_level.

mowl::init_with_level(log::LogLevel::Warn).unwrap();

warn!("A warning");
info!("A info message");