Struct gelf::TcpBackend
[−]
[src]
pub struct TcpBackend { /* fields omitted */ }
TcpBackend is a simple GELF over TCP backend.
WireMessages are simply serialized and optionally compressed and pushed to a Gelf host over TCP. TCP's stream-based nature requires no chunking.
Methods
impl TcpBackend
[src]
fn new<T: ToSocketAddrs>(destination: T) -> Result<TcpBackend>
Construct a new TcpBackend.
fn compression(&self) -> MessageCompression
Return the current set compression algorithm
fn set_compression(&mut self, compression: MessageCompression) -> &mut Self
Set the compression algorithm
Trait Implementations
impl Backend for TcpBackend
[src]
fn log_message(&self, msg: WireMessage) -> Result<()>
Log a message over TCP.
impl Drop for TcpBackend
[src]
fn drop(&mut self)
Try to close the connection gracefully when TcpBackend goes out of scope