HasLogFormat

Trait HasLogFormat 

Source
pub trait HasLogFormat {
    // Required method
    fn data(&self) -> &Value;

    // Provided method
    fn format_message(&self) -> String { ... }
}
Expand description

Trait for log message formatting and data

Required Methods§

Source

fn data(&self) -> &Value

Get the log data

Provided Methods§

Source

fn format_message(&self) -> String

Format the log message for output

Implementors§