Logger AddAppender Method | Apache log4net™ SDK Documentation

Add newAppender to the list of appenders of this Logger instance.

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 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
  An appender to add to this logger

#### Implements

IAppenderAttachable
AddAppender(IAppender)
Remarks

Add newAppender to the list of appenders of this Logger instance.

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

See Also

#### Reference

Logger Class
log4net.Repository.Hierarchy Namespace