Class DenyAllFilter
This filter drops all LoggingEvent.
public sealed class DenyAllFilter : FilterSkeleton, IFilter, IOptionHandler
- Inheritance
-
DenyAllFilter
- Implements
- Inherited Members
Remarks
You can add this filter to the end of a filter chain to switch from the default "accept all unless instructed otherwise" filtering behavior to a "deny all unless instructed otherwise" behavior.
Constructors
DenyAllFilter()
Default constructor
public DenyAllFilter()
Methods
Decide(LoggingEvent)
Always returns the integer constant Deny
public override FilterDecision Decide(LoggingEvent loggingEvent)
Parameters
loggingEventLoggingEventthe LoggingEvent to filter
Returns
- FilterDecision
Always returns Deny