AppenderAttachedImpl AddAppender Method | Apache log4net™ SDK Documentation

Attaches an appender.

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

C#
VB
C++
F#
Copy

    public void AddAppender(
    	IAppender newAppender
    )

    Public Sub AddAppender (
    	newAppender As IAppender
    )

    public:
    virtual void AddAppender(
    	IAppender^ newAppender
    ) sealed

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

#### Parameters

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

#### Implements

IAppenderAttachable
AddAppender(IAppender)
Remarks

If the appender is already in the list it won't be added again.

See Also

#### Reference

AppenderAttachedImpl Class
log4net.Util Namespace