logforth::append

Trait Append

Source
pub trait Append:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn append(&self, record: &Record<'_>) -> Result<()>;

    // Provided method
    fn flush(&self) { ... }
}
Expand description

A trait representing an appender that can process log records.

Implementors of this trait can handle log records in custom ways.

Required Methods§

Source

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

Dispatches a log record to the append target.

Provided Methods§

Source

fn flush(&self)

Flushes any buffered records.

Implementors§

Source§

impl Append for OpentelemetryLog

Available on crate feature opentelemetry only.
Source§

impl Append for RollingFile

Available on crate feature rolling-file only.
Source§

impl Append for FastraceEvent

Available on crate feature fastrace only.
Source§

impl Append for Journald

Available on Unix and crate feature journald only.
Source§

impl Append for Stderr

Source§

impl Append for Stdout

Source§

impl Append for Syslog

Available on crate feature syslog only.