Struct gelf::UdpBackend [] [src]

pub struct UdpBackend { /* fields omitted */ }

UdpBackend is the default and standard GELF backend

It pushes messages to a GELF host via UDP. Messages are cut into chunks of a certain chunk-size. This size is important since the chunk-size + a stable overhead of 12 bytes needs to fit the transport layer's mtu.

If the message fits into a single chunk, no chunking is applied.

Methods

impl UdpBackend
[src]

Construct a new UdpBackend with default chunk-size (ChunkSize::LAN)

Construct an new UdpBackend with the given chunk-size

Return the current set compression algorithm

Set the compression algorithm

Trait Implementations

impl Backend for UdpBackend
[src]

Log a message via UDP.