pub fn add_logger(&self, logger: Arc<dyn log::Log>) {
        self.config.update_with(|config| {
            let mut loggers = Vec::with_capacity(config.loggers.len() + 1);

            loggers.extend(config.loggers.iter().cloned());
            loggers.push(logger.clone());

            Some(Config {
                loggers: loggers.into(),
                ..(**config).clone()
            }.into())
        });
    }
/// Add a logger to the list of loggers.
///
/// The logger will be forwarded any messages that are not excluded by this
/// logger's filter.
Add a logger to the list of loggers.
The logger will be forwarded any messages that are not excluded by this
logger's filter.
Add a logger to the list of loggers . The logger will be forwarded any messages that are not excluded by this logger ' s filter .
pub fn add_logger(&self, logger: Arc<dyn log::Log>) {
        self.config.update_with(|config| {
            let mut loggers = Vec::with_capacity(config.loggers.len() + 1);
            loggers.extend(config.loggers.iter().cloned());
            loggers.push(logger.clone());
            Some(Config {
                loggers: loggers.into(),
                ..(**config).clone()
            }.into())
        });
    }
pub fn add_logger ( & self , logger : Arc < dyn log :: Log > ) { self . config . update_with ( | config | { let mut loggers = Vec :: with_capacity ( config . loggers . len ( ) + 1 ) ; loggers . extend ( config . loggers . iter ( ) . cloned ( ) ) ; loggers . push ( logger . clone ( ) ) ; Some ( Config { loggers : loggers . into ( ) , .. ( * * config ) . clone ( ) } . into ( ) ) } ) ; }
Add a logger to the list of loggers.
Add a logger to the list of loggers .
&self
logger
Arc<dyn log::Log>