Trait log4rs::append::Append

source ·
pub trait Append: Debug + Send + Sync + 'static {
    // Required methods
    fn append(&self, record: &Record<'_>) -> Result<()>;
    fn flush(&self);
}
Expand description

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.

Required Methods§

source

fn append(&self, record: &Record<'_>) -> Result<()>

Processes the provided Record.

source

fn flush(&self)

Flushes all in-flight records.

Trait Implementations§

source§

impl Deserializable for dyn Append

source§

fn name() -> &'static str

Returns a name for objects implementing the trait suitable for display in error messages. Read more

Implementors§