Function mowl::init_with_level_and_without_colors[][src]

pub fn init_with_level_and_without_colors(
    log_level: LevelFilter
) -> Result<(), Error>

Initializes the global logger with a specific max_log_level and without any coloring.

mowl::init_with_level_and_without_colors(log::LevelFilter::Warn).unwrap();

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

Errors

An error is returned if a logger has already been set.