Logger RemoveAppender Method (String) | 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(
    	string name
    )

    Public Overridable Function RemoveAppender (
    	name As String
    ) As IAppender

    public:
    virtual IAppender^ RemoveAppender(
    	String^ name
    )

    abstract RemoveAppender :
            name : string -> IAppender
    override RemoveAppender :
            name : string -> IAppender

#### Parameters

name
  Type: System
  String
  The name of the appender to remove

#### Return Value

Type: IAppender
The appender removed from the list

#### Implements

IAppenderAttachable
RemoveAppender(String)
Remarks

Remove the named 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