Struct artifact::format::SimpleMessageFormatter [] [src]

pub struct SimpleMessageFormatter;

Default formatter for logging messages if time info isn't available.

Trait Implementations

impl Clone for SimpleMessageFormatter
[src]

fn clone(&self) -> SimpleMessageFormatter

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl MessageFormatter for SimpleMessageFormatter
[src]

fn format_message(&self, logger_name: &str, level_string: &str, message: &str) -> String

Format a standard message.

fn add_logger_name_to_multi_message(&self, logger_name: &str, formatted_multi_msg: &str) -> String

Format for messages being sent onward by a multi-logger. logger_name is the name of the next logger. formatted_multi_msg is the message as formatted by the multi-logger's format_message method. Read more

fn add_defaulting_name_to_message(&self, default_logger_name: &str, formatted_msg: &str) -> String