/// Adds a directive to the filter.
///
/// The given module (if any) will log at most the specified level provided.
/// If no module is provided then the filter will apply to all log messages.
Adds a directive to the filter.
The given module (if any) will log at most the specified level provided.
If no module is provided then the filter will apply to all log messages.
Adds a directive to the filter . The given module ( if any ) will log at most the specified level provided . If no module is provided then the filter will apply to all log messages .
pub fn filter(&mut self, module: Option<&str>, level: LevelFilter) -> &mut Self {
        self.directives.push(Directive {
            name: module.map(|s| s.to_string()),
            level,
        });
        self
    }
pub fn filter ( & mut self , module : Option < & str > , level : LevelFilter ) -> & mut Self { self . directives . push ( Directive { name : module . map ( | s | s . to_string ( ) ) , level , } ) ; self }
Adds a directive to the filter.
Adds a directive to the filter .
&mut self
module
Option<&str>
level
LevelFilter