pub struct LogFilter { /* private fields */ }
Expand description
Log filter configuration
Implementations§
Source§impl LogFilter
impl LogFilter
Sourcepub fn with_default_level(self, level: Level) -> Self
pub fn with_default_level(self, level: Level) -> Self
Set the default log level
Sourcepub fn with_module(self, module: &str, level: Level) -> Self
pub fn with_module(self, module: &str, level: Level) -> Self
Set log level for a specific module/component
Sourcepub fn exclude_pattern(self, pattern: &str) -> Result<Self, Error>
pub fn exclude_pattern(self, pattern: &str) -> Result<Self, Error>
Add an exclude pattern
Sourcepub fn include_pattern(self, pattern: &str) -> Result<Self, Error>
pub fn include_pattern(self, pattern: &str) -> Result<Self, Error>
Add an include pattern (overrides excludes)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogFilter
impl RefUnwindSafe for LogFilter
impl Send for LogFilter
impl Sync for LogFilter
impl Unpin for LogFilter
impl UnwindSafe for LogFilter
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