Trait enso_flexer::prelude::logger::processor::formatter::GenericDefinition[][src]

pub trait GenericDefinition<Level>: Output {
    fn generic_format(entry: &Entry<Level>) -> Option<Self::Output>;
}
Expand description

A formatter allows formatting the incoming entry according to specific rules. The output is optional, as not all entries need to be formatted. For example, some loggers might want to display a visual indicator when a group is closed, while others will use API for that.

WARNING

This trait should be implemented automatically. See the macro define_levels_group to learn more.

Required methods

fn generic_format(entry: &Entry<Level>) -> Option<Self::Output>[src]

Loading content...

Implementors

Loading content...