Click or drag to resize

WhenRepeatedFilter Class

Matches when the result of the calculated layout has been repeated a moment ago
Inheritance Hierarchy
SystemObject
  NLog.FiltersFilter
    NLog.FiltersLayoutBasedFilter
      NLog.FiltersWhenRepeatedFilter

Namespace:  NLog.Filters
Assembly:  NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax
public class WhenRepeatedFilter : LayoutBasedFilter

The WhenRepeatedFilter type exposes the following members.

Constructors
  NameDescription
Public methodWhenRepeatedFilter
Initializes a new instance of the WhenRepeatedFilter class
Top
Properties
  NameDescription
Public propertyAction
Gets or sets the action to be taken when filter matches.
(Inherited from Filter.)
Public propertyDefaultFilterCacheSize
Default number of unique filter values to expect, will automatically increase if needed
Public propertyFilterCountMessageAppendFormat
Append FilterCount to the Message when an event is no longer filtered
Public propertyFilterCountPropertyName
Insert FilterCount value into Properties when an event is no longer filtered
Public propertyIncludeFirst
Applies the configured action to the initial logevent that starts the timeout period. Used to configure that it should ignore all events until timeout.
Public propertyLayout
Gets or sets the layout to be used to filter log messages.
(Inherited from LayoutBasedFilter.)
Public propertyMaxFilterCacheSize
Max number of unique filter values to expect simultaneously
Public propertyMaxLength
Max length of filter values, will truncate if above limit
Public propertyOptimizeBufferDefaultLength
Default buffer size for the internal buffers
Public propertyTimeoutSeconds
How long before a filter expires, and logging is accepted again
Top
Methods
  NameDescription
Protected methodCheck
Checks whether log event should be logged or not. In case the LogEvent has just been repeated.
(Overrides FilterCheck(LogEventInfo).)
Top
Remarks
See Also