pub fn init_logger(framebuffer: &'static mut [u8], info: FrameBufferInfo) {
    let logger = logger::LOGGER.get_or_init(move || logger::LockedLogger::new(framebuffer, info));
    log::set_logger(logger).expect("logger already set");
    log::set_max_level(log::LevelFilter::Trace);
    log::info!("Framebuffer info: {:?}", info);
}
/// Initialize a text-based logger using the given pixel-based framebuffer as output.  
Initialize a text-based logger using the given pixel-based framebuffer as output.
Initialize a text - based logger using the given pixel - based framebuffer as output .
pub fn init_logger(framebuffer: &'static mut [u8], info: FrameBufferInfo) {
    let logger = logger::LOGGER.get_or_init(move || logger::LockedLogger::new(framebuffer, info));
    log::set_logger(logger).expect("logger already set");
    log::set_max_level(log::LevelFilter::Trace);
    log::info!("Framebuffer info: {:?}", info);
}
pub fn init_logger ( framebuffer : & ' static mut [ u8 ] , info : FrameBufferInfo ) { let logger = logger :: LOGGER . get_or_init ( move | | logger :: LockedLogger :: new ( framebuffer , info ) ) ; log :: set_logger ( logger ) . expect ( " " ) ; log :: set_max_level ( log :: LevelFilter :: Trace ) ; log :: info ! ( " " info ) ; }
Initialize a text-based logger using the given pixel-based framebuffer as output.
Initialize a text - based logger using the given pixel - based framebuffer as output .
framebuffer
&'static mut [u8]
info
FrameBufferInfo
framebuffer
&'static mut [u8]
info
FrameBufferInfo