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
sourcefn log_message(&self, msg: WireMessage<'_>) -> Result<()>
fn log_message(&self, msg: WireMessage<'_>) -> Result<()>
Log a message.