pub struct LogglyDrainBuilder<F = AcceptAll> { /* private fields */ }
Expand description

Loggly drain builder.

Implementations§

Use a given key-value pair filter.

All key-value pairs rejected by the given filter will be serialized under a given fallback field.

This feature can be used if you want Loggly to index only a given subset of fields.

Enable or disable debug mode (it’s disabled by default). In the debug mode you’ll be able to see some runtime info on stderr that will help you with setting up the drain (e.g. failed requests). With debug mode disabled, all errors will be silently ignored.

Set a given maximum size of the message queue (the default is unlimited).

Maximum number of messages sent in one batch (the default is 20). Please note that all log messages are sent as soon as possible. Increasing batch size won’t cause any delays in sending messages. If there is not enough messages in the internal queue to make a maximum size batch, a smaller batch is sent.

Set the number of concurrent senders (the default is 16).

Set Loggly request timeout (the default is 5 seconds).

Use a given HttpsConnector. The connector is used only if the log message sender is spawned as a task.

Build a Loggly drain.

Spawn a tokio task within the current executor context. The task will be responsible for sending all log messages.

Spawn a thread responsible for sending all log messages.

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.

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

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.
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