Interface implemented by logger repositories.
Namespace: log4net.Repository
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The ILoggerRepository type exposes the following members.
Properties
Name | Description | |
---|---|---|
ConfigurationMessages |
Collection of internal messages captured during the most
recent configuration process.
| |
Configured |
Flag indicates if this repository has been configured.
| |
LevelMap |
Get the level map for the Repository.
| |
Name |
The name of the repository
| |
PluginMap |
The plugin map for this repository.
| |
Properties |
Repository specific properties
| |
RendererMap |
RendererMap accesses the object renderer map for this repository.
| |
Threshold |
The threshold for all events in this repository
|
Methods
Name | Description | |
---|---|---|
Exists |
Check if the named logger exists in the repository. If so return
its reference, otherwise returns null.
| |
GetAppenders |
Returns all the Appenders that are configured as an Array.
| |
GetCurrentLoggers |
Returns all the currently defined loggers as an Array.
| |
GetLogger |
Returns a named logger instance
| |
Log |
Log the LoggingEvent through this repository.
| |
ResetConfiguration |
Reset the repositories configuration to a default state
| |
Shutdown | Shutdown the repository |
Events
Name | Description | |
---|---|---|
ConfigurationChanged |
Event to notify that the repository has had its configuration changed.
| |
ConfigurationReset |
Event to notify that the repository has had its configuration reset.
| |
ShutdownEvent |
Event to notify that the repository has been shutdown.
|
Remarks
This interface is implemented by logger repositories. e.g. log4net.Repository.Hierarchy.
This interface is used by the LogManager to obtain ILog interfaces.
See Also