/// Returns the maximum `LevelFilter` that this filter instance is
/// configured to output.
///
/// # Example
///
/// ```rust
/// use log::LevelFilter;
/// use env_logger::filter::Builder;
///
/// let mut builder = Builder::new();
/// builder.filter(Some("module1"), LevelFilter::Info);
/// builder.filter(Some("module2"), LevelFilter::Error);
///
/// let filter = builder.build();
/// assert_eq!(filter.filter(), LevelFilter::Info);
/// ```
Returns the maximum `LevelFilter` that this filter instance is
configured to output.
Returns the maximum ` LevelFilter ` that this filter instance is configured to output .
pub fn filter(&self) -> LevelFilter {
        self.directives
            .iter()
            .map(|d| d.level)
            .max()
            .unwrap_or(LevelFilter::Off)
    }
pub fn filter ( & self ) -> LevelFilter { self . directives . iter ( ) . map ( | d | d . level ) . max ( ) . unwrap_or ( LevelFilter :: Off ) }
Returns the maximum `LevelFilter` that this filter instance is
configured to output.
Returns the maximum ` LevelFilter ` that this filter instance is configured to output .
&self
example
```rust
use log::LevelFilter;
use env_logger::filter::Builder.

let mut builder = Builder::new();
builder.filter(Some("module1"), LevelFilter::Info);
builder.filter(Some("module2"), LevelFilter::Error).


` ` ` rust use log :: LevelFilter ; use env_logger :: filter :: Builder . let mut builder = Builder :: new () ; builder . filter ( Some ( " module1 " ) LevelFilter :: Info ) ; builder . filter ( Some ( " module2 " ) LevelFilter :: Error ) .