FilterSkeleton Decide Method | Apache log4net™ SDK Documentation

Decide if the LoggingEvent 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

    public abstract FilterDecision Decide(
    	LoggingEvent loggingEvent
    )

    Public MustOverride Function Decide (
    	loggingEvent As LoggingEvent
    ) As FilterDecision

    public:
    virtual FilterDecision Decide(
    	LoggingEvent^ loggingEvent
    ) abstract

    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

#### Implements

IFilter
Decide(LoggingEvent)
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.

This method is marked abstract and must be implemented in a subclass.

See Also

#### Reference

FilterSkeleton Class
log4net.Filter Namespace