pub struct Format<F = Full, T = SystemTime> { /* private fields */ }
Expand description
Implementations§
Source§impl<F, T> Format<F, T>
impl<F, T> Format<F, T>
Sourcepub fn with_timer<T2>(self, timer: T2) -> Format<F, T2>
pub fn with_timer<T2>(self, timer: T2) -> Format<F, T2>
Use the given timer
for log message timestamps.
See time
for the provided timer implementations.
Note that using the chrono
feature flag enables the
additional time formatters ChronoUtc
and ChronoLocal
.
Sourcepub fn without_time(self) -> Format<F, ()>
pub fn without_time(self) -> Format<F, ()>
Do not emit timestamps with log messages.
Sourcepub fn with_ansi(self, ansi: bool) -> Format<F, T>
pub fn with_ansi(self, ansi: bool) -> Format<F, T>
Enable ANSI terminal colors for formatted output.
Sourcepub fn with_target(self, display_target: bool) -> Format<F, T>
pub fn with_target(self, display_target: bool) -> Format<F, T>
Sets whether or not an event’s target is displayed.
Trait Implementations§
Source§impl<N, T> FormatEvent<N> for Format<Compact, T>where
N: for<'a> NewVisitor<'a>,
T: FormatTime,
impl<N, T> FormatEvent<N> for Format<Compact, T>where
N: for<'a> NewVisitor<'a>,
T: FormatTime,
Source§impl<N, T> FormatEvent<N> for Format<Full, T>where
N: for<'a> NewVisitor<'a>,
T: FormatTime,
impl<N, T> FormatEvent<N> for Format<Full, T>where
N: for<'a> NewVisitor<'a>,
T: FormatTime,
Auto Trait Implementations§
impl<F, T> Freeze for Format<F, T>where
T: Freeze,
impl<F, T> RefUnwindSafe for Format<F, T>where
T: RefUnwindSafe,
F: RefUnwindSafe,
impl<F, T> Send for Format<F, T>
impl<F, T> Sync for Format<F, T>
impl<F, T> Unpin for Format<F, T>
impl<F, T> UnwindSafe for Format<F, T>where
T: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more