pub struct Filter {
pub min_level: Option<LogLevel>,
pub component: Option<String>,
pub attribute: Option<(String, Value)>,
}Expand description
Filter criteria applied to each record as it streams past.
Fields§
§min_level: Option<LogLevel>Minimum log level (inclusive). Records below this level are dropped.
component: Option<String>Optional component name. Only records with this exact
component value pass.
attribute: Option<(String, Value)>Optional (key, value) attribute match. Only records whose
attributes map contains this exact pairing pass.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin for Filter
impl UnwindSafe for Filter
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