log4net SDK Reference |

# LevelRangeFilter.Decide Method

Check if the event should be logged.

[Visual Basic]
Overrides Public Function Decide( _
ByVal loggingEvent As LoggingEvent _
) As FilterDecision _
Implements IFilter.Decide
[C#]
public override FilterDecision Decide(
LoggingEvent loggingEvent
);

#### Parameters

loggingEvent
  the logging event to check

#### Return Value

see remarks

#### Implements

IFilter.Decide

#### 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

LevelRangeFilter Class | log4net.Filter Namespace