SuppressionThreshold Property
Gets or sets the maximum number of similar log entries that are emitted before subsequent entries are suppressed.
Definition
Namespace: GHost.Core.Logging
Type: ILogger
Assembly: GHost.Core.dll
int SuppressionThreshold { get; set; }
Property Value
int
The number of similar log entries to emit before suppression begins.
Remarks
When log suppression is enabled via the SuppressionEnabled property, the logger will track log entries that are considered similar based on the SuppressionMode property. The SuppressionThreshold defines how many of these similar entries will be logged before the logger starts suppressing additional entries.
For example, if this property is set to 3, the logger will allow up to 3 similar log entries to be emitted, and once the 4th similar entry is logged, it will be suppressed until the suppression state is reset or the configuration changes.
After this threshold is reached, additional similar entries at or above SuppressionMinimumLevel are suppressed until the suppression state is reset or configuration changes.
If the threshold has been reached and log entries are currently being suppressed, if the threshold is then increased, the logger will allow additional similar entries to be emitted up to the new threshold before suppression resumes. Conversely, if the threshold is decreased while suppression is active, the logger will immediately suppress any additional similar entries that exceed the new lower threshold.