pub struct MinLevelPathMap<L = Level> { /* private fields */ }Expand description
A filter that applies a MinLevelFilter based on the module of an event.
This type allows different modules to apply different level filters. In particular, modules generating a lot of diagnostic noise can be silenced without affecting other modules.
Event modules are matched based on Path::is_child_of. If an event’s module is a child of one in the map then its MinLevelFilter will be checked against it. If an event’s module doesn’t match any in the map then it will pass the filter.
Implementations§
Source§impl<L> MinLevelPathMap<L>
impl<L> MinLevelPathMap<L>
Sourcepub fn default_min_level(
&mut self,
min_level: impl Into<MinLevelFilter<L>>,
) -> &mut Self
pub fn default_min_level( &mut self, min_level: impl Into<MinLevelFilter<L>>, ) -> &mut Self
Specify the minimum level for any modules that don’t match any added by MinLevelPathMap::min_level.
Trait Implementations§
Source§impl<L: Debug> Debug for MinLevelPathMap<L>
impl<L: Debug> Debug for MinLevelPathMap<L>
Source§impl<L, P: Into<Path<'static>>, T: Into<MinLevelFilter<L>>> FromIterator<(P, T)> for MinLevelPathMap<L>
impl<L, P: Into<Path<'static>>, T: Into<MinLevelFilter<L>>> FromIterator<(P, T)> for MinLevelPathMap<L>
impl InternalFilter for MinLevelPathMap
Auto Trait Implementations§
impl<L> Freeze for MinLevelPathMap<L>where
PathNode<L>: Freeze,
impl<L> RefUnwindSafe for MinLevelPathMap<L>where
PathNode<L>: RefUnwindSafe,
impl<L> Send for MinLevelPathMap<L>where
PathNode<L>: Send,
impl<L> Sync for MinLevelPathMap<L>where
PathNode<L>: Sync,
impl<L> Unpin for MinLevelPathMap<L>where
PathNode<L>: Unpin,
impl<L> UnsafeUnpin for MinLevelPathMap<L>where
PathNode<L>: UnsafeUnpin,
impl<L> UnwindSafe for MinLevelPathMap<L>where
PathNode<L>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more