Struct tracing_gelf::Builder[][src]

pub struct Builder { /* fields omitted */ }
Expand description

A builder for Logger.

Implementations

Add a persistent additional field to the GELF messages.

Set the GELF version number. Defaults to “1.1”.

Set whether line numbers should be logged. Defaults to true.

Set whether file names should be logged. Defaults to true.

Set whether module paths should be logged. Defaults to true.

Set the reconnection timeout in milliseconds. Defaults to 10 seconds.

Sets the buffer length. Defaults to 512.

Return Logger and TCP connection background task.

Initialize logging with a given Subscriber and return TCP connection background task.

Initialize logging and return TCP connection background task.

Return Logger layer and a UDP connection background task.

Initialize logging with a given Subscriber and return UDP connection background task.

Initialize logging and return UDP connection background task.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more