Apache logging services logo

Apache log4net™ Manual - Plugins

Plugins

Plugins are additional modular components that are attached to a logger repository.

Plugins are stored in the PluginMap of an ILoggerRepository. Plugins are attached to the repository by using the PluginMap.Add method.

Plugin Attributes

Plugins can be configured using the following assembly-level attributes:

  • PluginAttribute

    Specifies a plugin type to create and attach to the default repository. This attribute does not allow plugins to be parameterized. The plugin class must have a public default constructor.

    This attribute may be used as many times as necessary to attach plugins to the repository.