Assembly: log4net (in log4net.dll) Version: 188.8.131.52-.NET 4.0
public class LevelMatchFilter : FilterSkeleton
Public Class LevelMatchFilter Inherits FilterSkeleton
public ref class LevelMatchFilter : public FilterSkeleton
type LevelMatchFilter = class inherit FilterSkeleton end
Thetype exposes the following members.
The Level that the filter will match
Property to get and set the next filter(Inherited from FilterSkeleton.)
Initialize the filter with the options set(Inherited from FilterSkeleton.)
Tests if the Level of the logging event matches that of the filter(Overrides FilterSkeletonDecide(LoggingEvent).)
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.(Inherited from Object.)
Serves as a hash function for a particular type.(Inherited from Object.)
Gets the Type of the current instance.(Inherited from Object.)
Creates a shallow copy of the current Object.(Inherited from Object.)
The filter admits two options LevelToMatch and AcceptOnMatch. If there is an exact match between the value of the LevelToMatch option 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 the Level does not match then the result will be Neutral.