Skip to main content

default_formatter

Function default_formatter 

Source
pub fn default_formatter(
    content: &str,
    level: &str,
    color: Color,
    strong: bool,
) -> String
Expand description

Default formatter for init()

Example: 21:50:29 [I] : Hello, World!

You may customize the formatter by implementing a fn(content: &str, level: &str, color: Color, strong: bool) -> String and pass it to init()