Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

DenyAllFilter.Decide�Method�

Always returns the integer constant Deny

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

Parameters

loggingEvent
the LoggingEvent to filter

Return Value

Always returns Deny

Implements

IFilter.Decide

Remarks

Ignores the event being logged and just returns Deny. This can be used to change the default filter chain behavior from Accept to Deny. This filter should only be used as the last filter in the chain as any further filters will be ignored!

See Also

DenyAllFilter Class | log4net.Filter Namespace