Skip to main content

SuppressionMinimumLevel Property​

Gets or sets the minimum log level at which log suppression is applied.

Definition​

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

LogLevel SuppressionMinimumLevel { get; set; }

Property Value​

LogLevel
The lowest log level that participates in suppression.

Remarks​

Entries below this level are never suppressed; entries at or above this level may be suppressed based on the SuppressionMode the SuppressionMinimumLevel and the SuppressionThreshold properties.

This property is used for situations where regular log entries at the Fatal, Error, Warn and Info levels need to be suppressed when there are repetitive log entries, but Debug or Trace levels are enabled for troubleshooting purposes. Under these conditions, it is usually desirable to suppress only the higher-level log entries, while allowing all lower-level entries to be logged to provide full context for troubleshooting. The troubleshooting process would be misleading if only the first n log entries were logged and the rest were suppressed.

See Also​