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

the actual slog builder

Implementations

initialize the log-builder with a name for your service

enable debug-log for the given module. May be called multiple times to add debug logging for multiple modules

set a default loglevel

enforce JSON logging

this should typically be set via RUST_LOG_JSON=1

enforce no JSON logging

this should typically be set via RUST_LOG_JSON=0, or just leaving out RUST_LOG_JSON, as this is the default

do not initialize stdlog, i.e. disable slog for logs from log

initialize the logger based on the builder

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.