/// Initialize `env_logger` and set the log level for all packages. No
/// additional filtering is applied.
Initialize `env_logger` and set the log level for all packages. No
additional filtering is applied.
Initialize ` env_logger ` and set the log level for all packages . No additional filtering is applied .
pub fn log_all(&self, level: Option<Level>) -> Result<(), Error> {
    let level_filter = match level {
      Some(level) => level.to_level_filter(),
      None => return Ok(()),
    };
    init_builder(self.pretty)?
      .filter(None, level_filter)
      .try_init()?;
    Ok(())
  }
pub fn log_all ( & self , level : Option < Level > ) -> Result < ( ) , Error > { let level_filter = match level { Some ( level ) => level . to_level_filter ( ) , None => return Ok ( ( ) ) , } ; init_builder ( self . pretty ) ? . filter ( None , level_filter ) . try_init ( ) ? ; Ok ( ( ) ) }
Initialize `env_logger` and set the log level for all packages.
Initialize ` env_logger ` and set the log level for all packages .
&self
level
Option<Level>