pub struct JsonBuilder<W: Write> { /* private fields */ }
Expand description

Json Drain builder

Create with Json::new.

Implementations

Build Json Drain

This consumes the builder.

Set writing a newline after every log record

Enable flushing of the io::Write after every log record

Set whether or not pretty formatted logging should be used

Add custom values to be printed with this formatter

Add default key-values:

  • ts - timestamp
  • level - record logging level name
  • msg - msg - formatted logging message

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.