Trait slog_extlog::stats::StatisticsLogFormatter [] [src]

pub trait StatisticsLogFormatter {
    fn log_stat(logger: &StatisticsLogger<Self>, stat: &StatLogData)
    where
        Self: Sized
; }

A trait object to allow users to customise the format of stats when logged.

Required Methods

The formatting callback. This should take the statistic information and log it through the provided logger in the relevant format.

The DefaultStatisticsLogFormatter provides a basic format, or users can override the format of the generated logs by providing an object that implements this trait in the StatsConfig.

Implementors