log4net SDK Reference |

# IFilter.Decide Method

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

[Visual Basic]
Function Decide( _
ByVal loggingEvent As LoggingEvent _
) As FilterDecision
[C#]
FilterDecision Decide(
LoggingEvent loggingEvent
);

#### Parameters

loggingEvent
  The LoggingEvent to decide upon

#### Return Value

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

IFilter Interface | log4net.Filter Namespace