Struct slog_loggly::LogglyDrainBuilder [] [src]

pub struct LogglyDrainBuilder { /* fields omitted */ }

Loggly drain builder.

Methods

impl LogglyDrainBuilder
[src]

[src]

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.

[src]

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

[src]

Maximum number of messages sent in one batch (the default is 20).

[src]

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

[src]

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

[src]

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

[src]

Spawn the log message sender as a separate task using a given handle and return the drain.

[src]

Spawn the log message sender as a separate thread and return the drain. You should not use this method in asynchronous applications.

Trait Implementations

Auto Trait Implementations