Trait Filter
log4rs::filter
pub trait Filter: Debug + Send + Sync + 'static { fn filter(&self, record: &Record) -> Response; }
The trait implemented by log4rs filters.
Filters are associated with appenders and limit the log events that will be sent to that appender.
fn filter(&self, record: &Record) -> Response
Filters a log event.
impl Deserializable for dyn Filter
fn name() -> &'static str
Returns a name for objects implementing the trait suitable for display in error messages. Read more
impl Filter for ThresholdFilter