IFilter Decide Method | Apache log4net™ SDK Documentation

Decide if the logging event should be logged through an appender.

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

C#
VB
C++
F#
Copy

    FilterDecision Decide(
    	LoggingEvent loggingEvent
    )

    Function Decide (
    	loggingEvent As LoggingEvent
    ) As FilterDecision

    FilterDecision Decide(
    	LoggingEvent^ loggingEvent
    )

    abstract Decide :
            loggingEvent : LoggingEvent -> FilterDecision

#### Parameters

loggingEvent
  Type: log4net.Core
  LoggingEvent
  The LoggingEvent to decide upon

#### Return Value

Type: FilterDecision
The decision of the filter
Remarks

If the decision is Deny, then the event will be dropped. If the decision is Neutral, then the next filter, if any, will be invoked. If the decision is Accept then the event will be logged without consulting with other filters in the chain.

See Also

#### Reference

IFilter Interface
log4net.Filter Namespace