Trait gelf::Backend
[−]
[src]
pub trait Backend: Sync + Send { fn log_message(&self, msg: WireMessage) -> Result<()>; }
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
fn log_message(&self, msg: WireMessage) -> Result<()>
Log a message.
Implementors
impl Backend for UdpBackend
impl Backend for TcpBackend
impl Backend for NullBackend