Skip to main content

SuppressionMode Property​

Gets or sets the log suppression mode used to determine the similarity of log entries for suppression.

Definition​

Namespace: GHost.Core.Logging
Type: ILogger
Assembly: GHost.Core.dll

LogSuppressionMode SuppressionMode { get; set; }

Property Value​

LogSuppressionMode

The log entry suppression mode.

Remarks​

The suppression mode works together with the SuppressionMinimumLevel and the SuppressionThreshold properties to control how log suppression determines log similarity. The suppression mode determines which components of log entries are compared, to determine if they are similar enough to be suppressed.

For example, if the mode is set to Code, then only the log code is compared when determining if two log entries are similar. If the mode is set to CodeAndLevel, then both the log code and log level are compared. The more components that are included in the suppression mode, the more specific the criteria for similarity, which can lead to fewer log entries being suppressed. Conversely, a less specific mode may result in more log entries being suppressed if they share common components.

See Also​