Skip to main content

LogFormatter

Trait LogFormatter 

Source
pub trait LogFormatter: Send + Sync {
    // Required method
    fn format(&self, entry: &LogEntry) -> String;
}
Expand description

Log formatter trait

Required Methods§

Source

fn format(&self, entry: &LogEntry) -> String

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§