Trait gelf::Backend

source ·
pub trait Backend: Sync + Send {
    fn log_message(&self, msg: WireMessage<'_>) -> Result<()>;
}
Expand description

A trait for a GELF backend

A backend is responsible for transporting a WireMessage to a Gelf host. It is responsible for creating required sockets and chosing proper serialization and encoding options (e.g. chunking with ChunkedMessage or compression with MessageCompression)

Required Methods

Log a message.

Implementors