pub struct LogFilter { /* private fields */ }Available on crate feature
store only.Expand description
Builder-style filter for querying a LogStore.
Implementations§
Source§impl LogFilter
impl LogFilter
Sourcepub fn with_max_level(self, level: LogLevel) -> Self
pub fn with_max_level(self, level: LogLevel) -> Self
Match entries at or above the provided severity threshold.
Sourcepub fn with_target(self, target: impl Into<String>) -> Self
pub fn with_target(self, target: impl Into<String>) -> Self
Match entries with exactly this target.
Sourcepub fn with_target_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_target_prefix(self, prefix: impl Into<String>) -> Self
Match entries whose target starts with this prefix.
Sourcepub fn containing_text(self, text: impl Into<String>) -> Self
pub fn containing_text(self, text: impl Into<String>) -> Self
Match entries containing this case-sensitive text.
The search checks messages, field names, field values, and rendered lines.
Sourcepub fn with_limit(self, limit: usize) -> Self
pub fn with_limit(self, limit: usize) -> Self
Keep only the most recent limit matches.
Trait Implementations§
impl Eq for LogFilter
impl StructuralPartialEq for LogFilter
Auto Trait Implementations§
impl Freeze for LogFilter
impl RefUnwindSafe for LogFilter
impl Send for LogFilter
impl Sync for LogFilter
impl Unpin for LogFilter
impl UnsafeUnpin 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