Trait log4rs::filter::Filter

source ·
pub trait Filter: Debug + Send + Sync + 'static {
    // Required method
    fn filter(&self, record: &Record<'_>) -> Response;
}
Expand description

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§

source

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

Filters a log event.

Trait Implementations§

source§

impl Deserializable for dyn Filter

source§

fn name() -> &'static str

Returns a name for objects implementing the trait suitable for display in error messages. Read more

Implementors§