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]

Construct a new TcpBackend.

Return the current set compression algorithm

Set the compression algorithm

Trait Implementations

impl Backend for TcpBackend
[src]

Log a message over TCP.

impl Drop for TcpBackend
[src]

Try to close the connection gracefully when TcpBackend goes out of scope