pub fn init_with_level(log_level: Level) -> Result<(), SetLoggerError> {
    interrupt::free(|_| unsafe {
        log::set_logger(&LOGGER)
    })?;
    log::set_max_level(log_level.to_level_filter());
    Ok(())
}
/// Initialise the logger and set the log level to the provided `log_level`
Initialise the logger and set the log level to the provided `log_level`
Initialise the logger and set the log level to the provided ` log_level `
pub fn init_with_level(log_level: Level) -> Result<(), SetLoggerError> {
    interrupt::free(|_| unsafe {
        log::set_logger(&LOGGER)
    })?;
    log::set_max_level(log_level.to_level_filter());
    Ok(())
}
pub fn init_with_level ( log_level : Level ) -> Result < ( ) , SetLoggerError > { interrupt :: free ( | _ | unsafe { log :: set_logger ( & LOGGER ) } ) ? ; log :: set_max_level ( log_level . to_level_filter ( ) ) ; Ok ( ( ) ) }
Initialise the logger and set the log level to the provided `log_level`
Initialise the logger and set the log level to the provided ` log_level `
log_level
Level