Struct std_logger::Config[][src]

pub struct Config<F, Kvs> { /* fields omitted */ }
Expand description

Configuration of the logger.

It support two logging formats:

Implementations

Google Cloud Platform structured logging using JSON, following https://cloud.google.com/logging/docs/structured-logging.

Add the key-values kvs to all logged messages.

Initialise the logger.

See the crate level documentation for more.

Panics

This will panic if the logger fails to initialise. Use Config::try_init if you want to handle the error yourself.

Try to initialise the logger.

Unlike Config::init this doesn’t panic when the logger fails to initialise. See the crate level documentation for more.

Trait Implementations

Formats the value using the given formatter. 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

Performs the conversion.

Performs the conversion.

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.