LevelRangeFilter Decide Method | Apache log4net™ SDK Documentation

Check if the event should be logged.

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 logging event to check

#### Return Value

Type: FilterDecision
see remarks

#### Implements

IFilter
Decide(LoggingEvent)
Remarks

If the Level of the logging event is outside the range matched by this filter then Deny is returned. If the Level is matched then the value of AcceptOnMatch is checked. If it is true then Accept is returned, otherwise Neutral is returned.

See Also

#### Reference

LevelRangeFilter Class
log4net.Filter Namespace