IPlugin InterfaceApache 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

public interface IPlugin

The IPlugin type exposes the following members.

Properties

  NameDescription
Public propertyName
Gets the name of the plugin.
Top
Methods

  NameDescription
Public methodAttach
Attaches the plugin to the specified ILoggerRepository.
Public methodShutdown
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