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

A full info log records formatter.

It is the default formatter for sinks.

Log messages formatted by it look like:

  • Default:

    [2021-12-23 01:23:45.067] [info] log message

  • If the logger has a name:

    [2021-12-23 01:23:45.067] [logger-name] [info] log message

  • If crate feature source-location is enabled:

    [2021-12-23 01:23:45.067] [info] [crate::mod, main.rs:2] log message

Implementations

Constructs a FullFormatter.

Trait Implementations

Returns the “default value” for a type. Read more

Format a log record.

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.