Click or drag to resize

WhenNotContainsFilter Class

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

Namespace:  NLog.Filters
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public class WhenNotContainsFilter : LayoutBasedFilter

The WhenNotContainsFilter type exposes the following members.

Constructors
  NameDescription
Public methodWhenNotContainsFilter
Initializes a new instance of the WhenNotContainsFilter class
Top
Properties
  NameDescription
Public propertyAction
Gets or sets the action to be taken when filter matches.
(Inherited from Filter.)
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.)
Public propertySubstring
Gets or sets the substring to be matched.
Top
Methods
  NameDescription
Protected methodCheck
Checks whether log event should be logged or not.
(Overrides FilterCheck(LogEventInfo).)
Top
See Also