DenyAllFilter ClassApache log4net™ SDK Documentation
This filter drops all LoggingEvent.
Inheritance Hierarchy

SystemObject
  log4net.FilterFilterSkeleton
    log4net.FilterDenyAllFilter

Namespace: log4net.Filter
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public sealed class DenyAllFilter : FilterSkeleton

The DenyAllFilter type exposes the following members.

Constructors

  NameDescription
Public methodDenyAllFilter
Default constructor
Top
Properties

  NameDescription
Public propertyNext
Property to get and set the next filter
(Inherited from FilterSkeleton.)
Top
Methods

  NameDescription
Public methodActivateOptions
Initialize the filter with the options set
(Inherited from FilterSkeleton.)
Public methodDecide
Always returns the integer constant Deny
(Overrides FilterSkeletonDecide(LoggingEvent).)
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
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

Reference