Function mowl::init[][src]

pub fn init() -> Result<(), Error>

Initializes the global logger with max_log_level set to LevelFilter::Trace.

Examples

mowl::init().unwrap();
warn!("Warning");

Errors

An error is returned if logger has already been initialized.