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.
The following plugins are included in the log4net package:
Type | Description |
---|---|
log4net.Plugin.RemoteLoggingServerPlugin | Creates a remote logging sink that can receive logging events from a RemotingAppender. |
-
RemoteLoggingServerPlugin
Creates a remote logging sink that can receive logging events from a RemotingAppender.
Creates a remoting logging sink. A single parameter must be passed to the constructor that specifies the sink URI. This is a name used to identify the logging sink object published via remoting and must be agreed with the client before communication can take place.
Example usage:
LogManager.GetRepository().PluginMap.Add(new RemoteLoggingServerPlugin("LoggingSink"));