[][src]Trait log4rs::filter::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.

Required methods

fn filter(&self, record: &Record) -> Response

Filters a log event.

Loading content...

Trait Implementations

impl Deserializable for dyn Filter[src]

Implementors

impl Filter for ThresholdFilter[src]

Loading content...