pub struct EventFormat<T = SystemTime> {
    pub timer: T,
    pub display_target: bool,
    pub display_level: bool,
    pub display_thread_name: bool,
    pub enable_color: bool,
}
Expand description

A pre-configured event formatter.

Fields

timer: T

Use the given timer for log message timestamps.

display_target: bool

Sets whether or not an event’s target is displayed.

display_level: bool

Sets whether or not an event’s level is displayed.

display_thread_name: bool

Sets whether or not the name of the current thread is displayed when formatting events.

enable_color: bool

Enable ANSI terminal colors for formatted output.

Trait Implementations

Write a log message for Event in Context to the given Write.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.