pub trait RecordFilter: Send + 'static {
// Required method
fn check(&self, record: &Record) -> bool;
}
Expand description
Trait for filtering log records in LoggedStream
.
This trait allows filtering log records (Record
) using the check
method, which returns a bool
value.
It should be implemented for structures intended to be used as the filtering component within LoggedStream
.