LevelMatchFilter Decide Method | Apache log4net™ SDK Documentation

Tests if the Level of the logging event matches that of the filter

Namespace: log4net.Filter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public override FilterDecision Decide(
    	LoggingEvent loggingEvent
    )

    Public Overrides Function Decide (
    	loggingEvent As LoggingEvent
    ) As FilterDecision

    public:
    virtual FilterDecision Decide(
    	LoggingEvent^ loggingEvent
    ) override

    abstract Decide :
            loggingEvent : LoggingEvent -> FilterDecision
    override Decide :
            loggingEvent : LoggingEvent -> FilterDecision

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  the event to filter

#### Return Value

Type: FilterDecision
see remarks

#### Implements

IFilter
Decide(LoggingEvent)
Remarks

If the Level of the event matches the level of the filter then the result of the function depends on the value of AcceptOnMatch. If it is true then the function will return Accept, it it is false then it will return Deny. If the Level does not match then the result will be Neutral.

See Also

#### Reference

LevelMatchFilter Class
log4net.Filter Namespace