1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
//! Appenders use std::error::Error; use std::fmt; use log::LogRecord; pub mod file; pub mod console; /// A trait implemented by log4rs appenders. /// /// Appenders take a log record and processes them, for example, by writing it /// to a file or the console. pub trait Append: fmt::Debug + Send + Sync + 'static { /// Processes the provided `LogRecord`. fn append(&self, record: &LogRecord) -> Result<(), Box<Error>>; }