Trait RecordFilter

Source
pub trait RecordFilter: Send + 'static {
    // Required method
    fn check(&self, record: &Record) -> bool;
}
Expand description

Trait for filtering log records in LoggedStream.

This trait allows filtering log records (Record) using the check method, which returns a bool value. It should be implemented for structures intended to be used as the filtering component within LoggedStream.

Required Methods§

Source

fn check(&self, record: &Record) -> bool

This method returns bool value depending on if received log record (Record) should be processed by logging part inside LoggedStream.

Trait Implementations§

Source§

impl RecordFilter for Box<dyn RecordFilter>

Source§

fn check(&self, record: &Record) -> bool

This method returns bool value depending on if received log record (Record) should be processed by logging part inside LoggedStream.

Implementations on Foreign Types§

Source§

impl RecordFilter for Box<DefaultFilter>

Source§

fn check(&self, record: &Record) -> bool

Source§

impl RecordFilter for Box<RecordKindFilter>

Source§

fn check(&self, record: &Record) -> bool

Source§

impl RecordFilter for Box<dyn RecordFilter>

Source§

fn check(&self, record: &Record) -> bool

Implementors§