Struct slog_loggly::LogglyDrainBuilder [−][src]
pub struct LogglyDrainBuilder { /* fields omitted */ }
Expand description
Loggly drain builder.
Implementations
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
impl RefUnwindSafe for LogglyDrainBuilder
impl Send for LogglyDrainBuilder
impl Sync for LogglyDrainBuilder
impl Unpin for LogglyDrainBuilder
impl UnwindSafe for LogglyDrainBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
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