This filter drops all LoggingEvent.
Inheritance Hierarchy
log4net.FilterFilterSkeleton
log4net.FilterDenyAllFilter
Namespace: log4net.Filter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax
The DenyAllFilter type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| DenyAllFilter |
Default constructor
|
Properties
| Name | Description | |
|---|---|---|
| Next |
Property to get and set the next filter
(Inherited from FilterSkeleton.) |
Methods
| Name | Description | |
|---|---|---|
| ActivateOptions |
Initialize the filter with the options set
(Inherited from FilterSkeleton.) | |
| Decide |
Always returns the integer constant Deny (Overrides FilterSkeletonDecide(LoggingEvent).) | |
| Equals | (Inherited from Object.) | |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| ToString | (Inherited from Object.) |
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.
See Also