pub struct TermDecorator { /* private fields */ }
Expand description

Decorator implemented using term crate

This decorator will add nice formatting to the logs it’s outputting. It’s based on term crate.

It does not deal with serialization so is !Sync. Run in a separate thread with slog_async::Async.

Implementations

Start building TermDecorator

Level color

Standard level to Unix color conversion used by TermDecorator

Trait Implementations

Get a RecordDecorator for a given record Read more

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.

Calls U::from(self).

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

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.