Trait SinkConfigTrait

Source
pub trait SinkConfigTrait {
    // Required methods
    fn get_level(&self) -> Level;
    fn get_file_path(&self) -> Option<Box<Path>>;
    fn write_hash(&self, hasher: &mut Box<dyn Hasher>);
    fn build(&self) -> LoggerSink;
}

Required Methods§

Source

fn get_level(&self) -> Level

get max log level of the sink

Source

fn get_file_path(&self) -> Option<Box<Path>>

Only file sink has path

Source

fn write_hash(&self, hasher: &mut Box<dyn Hasher>)

Calculate hash for config comparision

Source

fn build(&self) -> LoggerSink

Build an actual sink from config

Implementors§