Struct slog::Filter
[−]
[src]
pub struct Filter<D: Drain> { /* fields omitted */ }
Drain
filtering records
Wraps another Drain
and passes Record
s 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
cond: F)
-> Self
Create Filter
wrapping given drain