IAppender Interface | Apache log4net™ SDK Documentation

Implement this interface for your own strategies for printing log statements.

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

C#
VB
C++
F#
Copy

    public interface IAppender

    Public Interface IAppender

    public interface class IAppender

    type IAppender =  interface end

The IAppender type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Name | Gets or sets the name of this appender.

Top
Methods

| Name | Description
--- | --- | ---
| Close | Closes the appender and releases resources.
| DoAppend | Log the logging event in Appender specific way.

Top
Remarks

Implementors should consider extending the AppenderSkeleton class which provides a default implementation of this interface.

Appenders can also implement the IOptionHandler interface. Therefore they would require that the [M:IOptionHandler.ActivateOptions()] method be called after the appenders properties have been configured.

See Also

#### Reference

log4net.Appender Namespace