Struct slog_term::CompactFormatBuilder
[−]
[src]
pub struct CompactFormatBuilder<D> where
D: Decorator, { /* fields omitted */ }
Streamer builder
Methods
impl<D> CompactFormatBuilder<D> where
D: Decorator,
[src]
D: Decorator,
pub fn use_utc_timestamp(self) -> Self
[src]
Use the UTC time zone for the timestamp
pub fn use_local_timestamp(self) -> Self
[src]
Use the local time zone for the timestamp (default)
pub fn use_custom_timestamp<F>(self, f: F) -> Self where
F: ThreadSafeTimestampFn,
[src]
F: ThreadSafeTimestampFn,
Provide a custom function to generate the timestamp
pub fn build(self) -> CompactFormat<D>
[src]
Build the streamer
Trait Implementations
Auto Trait Implementations
impl<D> Send for CompactFormatBuilder<D> where
D: Send,
D: Send,
impl<D> Sync for CompactFormatBuilder<D> where
D: Sync,
D: Sync,