-
Notifications
You must be signed in to change notification settings - Fork 0
6f3dab52 ebc7 2286 1c16 5ee8b9325e13
Enables or disables message compression.
Namespace: Plexdata.LogWriter.Settings
Assembly: Plexdata.LogWriter.Network (in Plexdata.LogWriter.Network.dll) Version: 1.0.7.1
C#
public bool Compressed { get; set; }
Type: Boolean
True to enable compression and false to disable it. Default is true.
INetworkLoggerSettings.Compressed
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.
NetworkLoggerSettings Class
Plexdata.LogWriter.Settings Namespace
INetworkLoggerSettings.Threshold
INetworkLoggerSettings.Maximum
INetworkLoggerSettings.Protocol