Struct slog::Filter
[−]
[src]
pub struct Filter<D: Drain> { /* fields omitted */ }Drain filtering records
Wraps another Drain and passes Records to it, only if they satisfy a
given condition.
Methods
impl<D: Drain> Filter<D>[src]
fn new<F: 'static + Sync + Send + Fn(&Record) -> bool>(
drain: D,
cond: F
) -> Self
drain: D,
cond: F
) -> Self
Create Filter wrapping given drain