AppenderSkeleton AddFilter Method | Apache log4net™ SDK Documentation

Adds a filter to the end of the filter chain.

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public virtual void AddFilter(
    	IFilter filter
    )

    Public Overridable Sub AddFilter (
    	filter As IFilter
    )

    public:
    virtual void AddFilter(
    	IFilter^ filter
    )

    abstract AddFilter :
            filter : IFilter -> unit
    override AddFilter :
            filter : IFilter -> unit

#### Parameters

filter
  Type: log4net.Filter
  IFilter
  the filter to add to this appender

Remarks

The Filters are organized in a linked list.

Setting this property causes the new filter to be pushed onto the back of the filter chain.

See Also

#### Reference

AppenderSkeleton Class
log4net.Appender Namespace