Struct slog::LevelFilter [] [src]

pub struct LevelFilter<D: Drain> { /* fields omitted */ }

Drain filtering records by Record logging level

Wraps a drain and passes records to it, only if their level is at least given level.

TODO: Remove this type. This drain is a special case of Filter, but because Filter can not use static dispatch ATM due to Rust limitations that will be lifted in the future, it is a standalone type.


impl<D: Drain> LevelFilter<D>

Create LevelFilter

Trait Implementations

impl<D: Drain> Drain for LevelFilter<D>

Type of potential errors returned during logging

Log one logging record Read more