Trait gelf_logger::Batch

source ·
pub trait Batch {
    // Required methods
    fn send(&self, rec: &GelfRecord) -> Result<(), Error>;
    fn flush(&self) -> Result<(), Error>;
}
Expand description

Trait for async batch processing of GelfRecord.

Required Methods§

source

fn send(&self, rec: &GelfRecord) -> Result<(), Error>

Send the GelfRecord in the async batch processor

Records will actually be sent depending on configuration options

source

fn flush(&self) -> Result<(), Error>

Flushes buffered records to the network

Implementors§