Click or drag to resize

LayoutBasedFilter Class

A base class for filters that are based on comparing a value to a layout.
Inheritance Hierarchy

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

The LayoutBasedFilter type exposes the following members.

Constructors
  NameDescription
Protected methodLayoutBasedFilter
Initializes a new instance of the LayoutBasedFilter class.
Top
Properties
  NameDescription
Public propertyAction
Gets or sets the action to be taken when filter matches.
(Inherited from Filter.)
Public propertyLayout
Gets or sets the layout to be used to filter log messages.
Top
Methods
  NameDescription
Protected methodCheck
Checks whether log event should be logged or not.
(Inherited from Filter.)
Top
See Also