BufferingForwardingAppender AddAppender Method | Apache log4net™ SDK Documentation

Adds an IAppender to the list of appenders of this instance.

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 AddAppender(
    	IAppender newAppender
    )

    Public Overridable Sub AddAppender (
    	newAppender As IAppender
    )

    public:
    virtual void AddAppender(
    	IAppender^ newAppender
    )

    abstract AddAppender :
            newAppender : IAppender -> unit
    override AddAppender :
            newAppender : IAppender -> unit

#### Parameters

newAppender
  Type: log4net.Appender
  IAppender
  The IAppender to add to this appender.

#### Implements

IAppenderAttachable
AddAppender(IAppender)
Remarks

If the specified IAppender is already in the list of appenders, then it won't be added again.

See Also

#### Reference

BufferingForwardingAppender Class
log4net.Appender Namespace