This is a simple filter based on Level matching.
Inheritance Hierarchy
log4net.FilterFilterSkeleton
log4net.FilterLevelRangeFilter
Namespace: log4net.Filter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax
The LevelRangeFilter type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LevelRangeFilter |
Default constructor
|
Properties
Name | Description | |
---|---|---|
AcceptOnMatch | ||
LevelMax |
Sets the maximum matched Level | |
LevelMin |
Set the minimum matched Level | |
Next |
Property to get and set the next filter
(Inherited from FilterSkeleton.) |
Methods
Name | Description | |
---|---|---|
ActivateOptions |
Initialize the filter with the options set
(Inherited from FilterSkeleton.) | |
Decide |
Check if the event should be logged.
(Overrides FilterSkeletonDecide(LoggingEvent).) | |
Equals | (Inherited from Object.) | |
Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
ToString | (Inherited from Object.) |
Remarks
The filter admits three options LevelMin and LevelMax that determine the range of priorities that are matched, and AcceptOnMatch. If there is a match between the range of priorities and the Level of the LoggingEvent, then the Decide(LoggingEvent) method returns Accept in case the AcceptOnMatch option value is set to true, if it is false then Deny is returned. If there is no match, Deny is returned.
See Also