IPlugin Interface | Apache log4net™ SDK Documentation

Interface implemented by logger repository plugins.

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

C#
VB
C++
F#
Copy

    public interface IPlugin

    Public Interface IPlugin

    public interface class IPlugin

    type IPlugin =  interface end

The IPlugin type exposes the following members.

Properties

| Name | Description
--- | --- | ---
| Name | Gets the name of the plugin.

Top
Methods

| Name | Description
--- | --- | ---
| Attach | Attaches the plugin to the specified ILoggerRepository.
| Shutdown | Is called when the plugin is to shutdown.

Top
Remarks

Plugins define additional behavior that can be associated with a ILoggerRepository. The PluginMap held by the PluginMap property is used to store the plugins for a repository.

The log4net.Config.PluginAttribute can be used to attach plugins to repositories created using configuration attributes.

See Also

#### Reference

log4net.Plugin Namespace