pub fn init_logger(level: Level) {
    EPOCH.get_or_init(Instant::now);

    INIT_ONCE.call_once(|| {
        log::set_logger(&LOGGER)
            .map(|()| log::set_max_level(level.to_level_filter()))
            .unwrap();
    });
}
/// Initialize the logger for console logging within test environments.
/// This is safe to call multiple times, but it will only initialize the logger
/// to the log-level _first_ set. If you want a specific log-level (e.g. Debug)
/// for a specific test, make sure to only run that single test after editing that
/// test's log-level.
///
/// The default level applied everywhere is Info
Initialize the logger for console logging within test environments.
This is safe to call multiple times, but it will only initialize the logger
to the log-level _first_ set. If you want a specific log-level
for a specific test, make sure to only run that single test after editing that
test's log-level.

The default level applied everywhere is Info
Initialize the logger for console logging within test environments . This is safe to call multiple times but it will only initialize the logger to the log - level _first_ set . If you want a specific log - level for a specific test make sure to only run that single test after editing that test ' s log - level . The default level applied everywhere is Info
pub fn init_logger(level: Level) {
    EPOCH.get_or_init(Instant::now);
    INIT_ONCE.call_once(|| {
        log::set_logger(&LOGGER)
            .map(|()| log::set_max_level(level.to_level_filter()))
            .unwrap();
    });
}
pub fn init_logger ( level : Level ) { EPOCH . get_or_init ( Instant :: now ) ; INIT_ONCE . call_once ( | | { log :: set_logger ( & LOGGER ) . map ( | ( ) | log :: set_max_level ( level . to_level_filter ( ) ) ) . unwrap ( ) ; } ) ; }
Initialize the logger for console logging within test environments.
Initialize the logger for console logging within test environments .
level
Level
level
Level