pub fn init_once(filter: Filter) {
    if let Err(err) = log::set_logger(&*ANDROID_LOGGER) {
        debug!("android_logger: log::set_logger failed: {}", err);
    } else {
        if let Some(level) = filter.log_level {
            log::set_max_level(level.to_level_filter());
        }
        *ANDROID_LOGGER
            .filter
            .write()
            .expect("failed to acquire android_log filter lock for write") = filter;
    }
}
/// Initializes the global logger with an android logger.
///
/// This can be called many times, but will only initialize logging once,
/// and will not replace any other previously initialized logger.
///
/// It is ok to call this at the activity creation, and it will be
/// repeatedly called on every lifecycle restart (i.e. screen rotation).
Initializes the global logger with an android logger.
This can be called many times, but will only initialize logging once,
and will not replace any other previously initialized logger.

It is ok to call this at the activity creation, and it will be
repeatedly called on every lifecycle restart .
Initializes the global logger with an android logger . This can be called many times but will only initialize logging once and will not replace any other previously initialized logger . It is ok to call this at the activity creation and it will be repeatedly called on every lifecycle restart .
pub fn init_once(filter: Filter) {
    if let Err(err) = log::set_logger(&*ANDROID_LOGGER) {
        debug!("android_logger: log::set_logger failed: {}", err);
    } else {
        if let Some(level) = filter.log_level {
            log::set_max_level(level.to_level_filter());
        }
        *ANDROID_LOGGER
            .filter
            .write()
            .expect("failed to acquire android_log filter lock for write") = filter;
    }
}
pub fn init_once ( filter : Filter ) { if let Err ( err ) = log :: set_logger ( & * ANDROID_LOGGER ) { debug ! ( " " err ) ; } else { if let Some ( level ) = filter . log_level { log :: set_max_level ( level . to_level_filter ( ) ) ; } * ANDROID_LOGGER . filter . write ( ) . expect ( " " ) = filter ; } }
Initializes the global logger with an android logger.
Initializes the global logger with an android logger .
filter
Filter
filter
Filter