log4net SDK Reference |

# 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(
LoggingEvent loggingEvent
);

#### 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