Struct gelf::UdpBackend

source ·
pub struct UdpBackend { /* private fields */ }
Expand description

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.

Implementations

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

Log a message via UDP.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.