[−][src]Struct slog_extlog::stats::StatsConfig
Configuration required for tracking statistics.
This configuration should be passed to a StatisticsLogger
to allow tracking metrics from logs.
Construct either with Default::default() for no stats at all,
or else use a StatsConfigBuilder.
Fields
interval_secs: Option<u64>The period, in seconds, to log the generated metrics into the log stream. Defaults to
300 seconds (5 minutes). One log will be generated for each metric value. A value of
None indicates stats should never be logged.
stats: Vec<StatDefinitions>The list of statistics to track. This MUST be created using the
define_stats macro.
handle: Option<Handle>The tokio reactor core to run the stats logging
on, if the user is using tokio already.
If this is None (the default), then a new core is created for logging stats.
stat_formatter: PhantomData<T>An object that handles formatting the individual statistic values into a log.
Trait Implementations
impl<F> Default for StatsConfig<F> where
F: StatisticsLogFormatter, [src]
F: StatisticsLogFormatter,
impl<T: Debug> Debug for StatsConfig<T> where
T: StatisticsLogFormatter, [src]
T: StatisticsLogFormatter,
Auto Trait Implementations
impl<T> !Send for StatsConfig<T>
impl<T> !Sync for StatsConfig<T>
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,