unsafe fn init_logger(st: &SystemTable<Boot>) {
    let stdout = st.stdout();

    // Construct the logger.
    let logger = {
        LOGGER = Some(uefi::logger::Logger::new(stdout));
        LOGGER.as_ref().unwrap()
    };

    // Set the logger.
    log::set_logger(logger).unwrap(); // Can only fail if already initialized.

    // Log everything.
    log::set_max_level(log::LevelFilter::Trace);
}
/// Set up logging
///
/// This is unsafe because you must arrange for the logger to be reset with
/// disable() on exit from UEFI boot services.
Set up logging
This is unsafe because you must arrange for the logger to be reset with
disable() on exit from UEFI boot services.
Set up logging This is unsafe because you must arrange for the logger to be reset with disable () on exit from UEFI boot services .
unsafe fn init_logger(st: &SystemTable<Boot>) {
    let stdout = st.stdout();
    // Construct the logger.
    let logger = {
        LOGGER = Some(uefi::logger::Logger::new(stdout));
        LOGGER.as_ref().unwrap()
    };
    // Set the logger.
    log::set_logger(logger).unwrap(); // Can only fail if already initialized.
    // Log everything.
    log::set_max_level(log::LevelFilter::Trace);
}
unsafe fn init_logger ( st : & SystemTable < Boot > ) { let stdout = st . stdout ( ) ; // Construct the logger. let logger = { LOGGER = Some ( uefi :: logger :: Logger :: new ( stdout ) ) ; LOGGER . as_ref ( ) . unwrap ( ) } ; // Set the logger. log :: set_logger ( logger ) . unwrap ( ) ; // Can only fail if already initialized. // Log everything. log :: set_max_level ( log :: LevelFilter :: Trace ) ; }
Set up logging
This is unsafe because you must arrange for the logger to be reset with
disable() on exit from UEFI boot services.
Set up logging This is unsafe because you must arrange for the logger to be reset with disable () on exit from UEFI boot services .
st
&SystemTable<Boot>