/// Initializes the global logger with a Logger instance.
///
/// This should be called early in the execution of a Rust program, and the
/// global logger may only be initialized once. Future initialization
/// attempts will return an error.
Initializes the global logger with a Logger instance.
This should be called early in the execution of a Rust program, and the
global logger may only be initialized once. Future initialization
attempts will return an error.
Initializes the global logger with a Logger instance . This should be called early in the execution of a Rust program and the global logger may only be initialized once . Future initialization attempts will return an error .
pub fn init() -> Result<(), log::SetLoggerError> {
    log::set_logger(|max_log_level| {
        max_log_level.set(log::LogLevelFilter::Info) ;
        let mut logger = Logger::new() ;
        //logger.set_message_flushing(true) ;
        Box::new(logger)
    })
}
pub fn init ( ) -> Result < ( ) , log :: SetLoggerError > { log :: set_logger ( | max_log_level | { max_log_level . set ( log :: LogLevelFilter :: Info ) ; let mut logger = Logger :: new ( ) ; //logger.set_message_flushing(true) ; Box :: new ( logger ) } ) }
Initializes the global logger with a Logger instance.
Initializes the global logger with a Logger instance .