AppenderSkeleton FilterEvent Method | Apache log4net™ SDK Documentation

Test if the logging event should we output by this appender

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

C#
VB
C++
F#
Copy

    protected virtual bool FilterEvent(
    	LoggingEvent loggingEvent
    )

    Protected Overridable Function FilterEvent (
    	loggingEvent As LoggingEvent
    ) As Boolean

    protected:
    virtual bool FilterEvent(
    	LoggingEvent^ loggingEvent
    )

    abstract FilterEvent :
            loggingEvent : LoggingEvent -> bool
    override FilterEvent :
            loggingEvent : LoggingEvent -> bool

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  the event to test

#### Return Value

Type: Boolean
true if the event should be output, false if the event should be ignored
Remarks

This method checks the logging event against the threshold level set on this appender and also against the filters specified on this appender.

The implementation of this method is as follows:

- Checks that the severity of the loggingEvent is greater than or equal to the Threshold of this appender.
- Checks that the IFilter chain accepts the loggingEvent.

See Also

#### Reference

AppenderSkeleton Class
log4net.Appender Namespace