Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

FilterSkeleton.Decide�Method�

Decide if the LoggingEvent should be logged through an appender.

[Visual�Basic]
MustOverride�Public�Function�Decide( _
���ByVal loggingEvent�As�LoggingEvent�_
)�As�FilterDecision�_
����Implements�IFilter.Decide
[C#]
public�abstract�FilterDecision�Decide(
���LoggingEventloggingEvent
);

Parameters

loggingEvent
The LoggingEvent to decide upon

Return Value

The decision of the filter

Implements

IFilter.Decide

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

FilterSkeleton Class | log4net.Filter Namespace