Click or drag to resize

ConditionBasedFilter Class

Matches when the specified condition is met.
Inheritance Hierarchy
SystemObject
  NLog.FiltersFilter
    NLog.FiltersConditionBasedFilter

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

The ConditionBasedFilter type exposes the following members.

Constructors
  NameDescription
Public methodConditionBasedFilter
Initializes a new instance of the ConditionBasedFilter class
Top
Properties
  NameDescription
Public propertyAction
Gets or sets the action to be taken when filter matches.
(Inherited from Filter.)
Public propertyCondition
Gets or sets the condition expression.
Top
Methods
  NameDescription
Protected methodCheck
Checks whether log event should be logged or not.
(Overrides FilterCheck(LogEventInfo).)
Top
Remarks
Conditions are expressed using a simple language.
See Also