SinkConfigTrait

Trait SinkConfigTrait 

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

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 comparison

Implementors§

Source§

impl SinkConfigTrait for LogBufFile

Source§

impl SinkConfigTrait for LogConsole

Source§

impl SinkConfigTrait for LogRawFile

Source§

impl SinkConfigTrait for LogRingFile

Available on crate feature ringfile only.
Source§

impl SinkConfigTrait for Syslog

Available on crate feature syslog only.