Click or drag to resize

WhenEqualFilter Class

Matches when the calculated layout is equal to the specified substring. This filter is deprecated in favor of <when /> which is based on conditions.
Inheritance Hierarchy
SystemObject
  NLog.FiltersFilter
    NLog.FiltersLayoutBasedFilter
      NLog.FiltersWhenEqualFilter

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

The WhenEqualFilter type exposes the following members.

Constructors
  NameDescription
Public methodWhenEqualFilter
Initializes a new instance of the WhenEqualFilter class
Top
Properties
  NameDescription
Public propertyAction
Gets or sets the action to be taken when filter matches.
(Inherited from Filter.)
Public propertyCompareTo
Gets or sets a string to compare the layout to.
Public propertyIgnoreCase
Gets or sets a value indicating whether to ignore case when comparing strings.
Public propertyLayout
Gets or sets the layout to be used to filter log messages.
(Inherited from LayoutBasedFilter.)
Top
Methods
  NameDescription
Protected methodCheck
Checks whether log event should be logged or not.
(Overrides FilterCheck(LogEventInfo).)
Top
See Also