Skip to main content

LogFilter

Trait LogFilter 

Source
pub trait LogFilter: Send + Sync {
    // Required method
    fn accepts(&self, event: &LogEvent) -> bool;
}
Expand description

Filters events before they are written to one registered sink.

Required Methods§

Source

fn accepts(&self, event: &LogEvent) -> bool

Returns whether the sink should receive the event.

Implementors§