Logger RemoveAppender Method (IAppender) | Apache log4net™ SDK Documentation

Remove the appender passed as parameter form the list of appenders.

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

C#
VB
C++
F#
Copy

    public virtual IAppender RemoveAppender(
    	IAppender appender
    )

    Public Overridable Function RemoveAppender (
    	appender As IAppender
    ) As IAppender

    public:
    virtual IAppender^ RemoveAppender(
    	IAppender^ appender
    )

    abstract RemoveAppender :
            appender : IAppender -> IAppender
    override RemoveAppender :
            appender : IAppender -> IAppender

#### Parameters

appender
  Type: log4net.Appender
  IAppender
  The appender to remove

#### Return Value

Type: IAppender
The appender removed from the list

#### Implements

IAppenderAttachable
RemoveAppender(IAppender)
Remarks

Remove the appender passed as parameter form the list of appenders. The appender removed is not closed. If you are discarding the appender you must call Close
on the appender removed.

See Also

#### Reference

Logger Class
RemoveAppender Overload
log4net.Repository.Hierarchy Namespace