Skip to content

6f3dab52 ebc7 2286 1c16 5ee8b9325e13

Axel Kesseler edited this page Mar 1, 2023 · 1 revision

NetworkLoggerSettings.Compressed Property

Enables or disables message compression.

Namespace: Plexdata.LogWriter.Settings
Assembly: Plexdata.LogWriter.Network (in Plexdata.LogWriter.Network.dll) Version: 1.0.7.1

Syntax

C#

public bool Compressed { get; set; }

Property Value

Type: Boolean
True to enable compression and false to disable it. Default is true.

Implements

INetworkLoggerSettings.Compressed

Remarks

Messages are compressed if enabled and the number of bytes of a message is greater than the Threshold.

Using compression is a matter of CPU load or network traffic.

According to the Graylog/GELF documentation GZip is used as compression default algorithm. And this algorithm is taken here as well. The ZLib algorithm is not supported at the moment.

Keep in mind, this property is used only together with protocol type Udp.

Additionally note, compression is never used for non-GELF messages.

See Also

Reference

NetworkLoggerSettings Class
Plexdata.LogWriter.Settings Namespace
INetworkLoggerSettings.Threshold
INetworkLoggerSettings.Maximum
INetworkLoggerSettings.Protocol

Clone this wiki locally