doric/backend/
extend.rs

1use crate::backend::LoggerConfig;
2use crate::encode::parser::Message;
3use crate::runtime::append::Appender;
4
5#[derive(Debug)]
6pub struct Extend {
7    pub lc: LoggerConfig,
8}
9
10impl Extend {
11    pub fn new(conf: LoggerConfig) -> Extend {
12        Extend { lc: conf }
13    }
14}
15
16impl Appender for Extend {
17    fn append(&self, msg: &Message) -> Result<(), String> {
18        println!("fgfgh log line {:?}", msg);
19        Ok(())
20    }
21}