[−][src]Trait gelf::Backend
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 NullBackend
[src]
fn log_message(&self, _: WireMessage) -> Result<()>
[src]
Log a message.
Logging a message with NullBackend is a noop and will never fail.
impl Backend for TcpBackend
[src]
fn log_message(&self, msg: WireMessage) -> Result<()>
[src]
Log a message over TCP.
impl Backend for UdpBackend
[src]
fn log_message(&self, msg: WireMessage) -> Result<()>
[src]
Log a message via UDP.