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]
Implementors
impl<T> GenericDefinition<DefaultLevels> for T where
T: Definition<Trace> + Definition<Debug> + Definition<Info> + Definition<Warning> + Definition<Error>,
[src]
impl<T> GenericDefinition<DefaultLevels> for T where
T: Definition<Trace> + Definition<Debug> + Definition<Info> + Definition<Warning> + Definition<Error>,
[src]pub fn generic_format(
entry: &Entry<DefaultLevels>
) -> Option<<T as Output>::Output>
[src]
entry: &Entry<DefaultLevels>
) -> Option<<T as Output>::Output>