ILoggerRepository InterfaceApache log4net™ SDK Documentation
Interface implemented by logger repositories.

Namespace: log4net.Repository
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax

public interface ILoggerRepository

The ILoggerRepository type exposes the following members.

Properties

  NameDescription
Public propertyConfigurationMessages
Collection of internal messages captured during the most recent configuration process.
Public propertyConfigured
Flag indicates if this repository has been configured.
Public propertyLevelMap
Get the level map for the Repository.
Public propertyName
The name of the repository
Public propertyPluginMap
The plugin map for this repository.
Public propertyProperties
Repository specific properties
Public propertyRendererMap
RendererMap accesses the object renderer map for this repository.
Public propertyThreshold
The threshold for all events in this repository
Top
Methods

  NameDescription
Public methodExists
Check if the named logger exists in the repository. If so return its reference, otherwise returns null.
Public methodGetAppenders
Returns all the Appenders that are configured as an Array.
Public methodGetCurrentLoggers
Returns all the currently defined loggers as an Array.
Public methodGetLogger
Returns a named logger instance
Public methodLog
Log the LoggingEvent through this repository.
Public methodResetConfiguration
Reset the repositories configuration to a default state
Public methodShutdown
Shutdown the repository
Top
Events

  NameDescription
Public eventConfigurationChanged
Event to notify that the repository has had its configuration changed.
Public eventConfigurationReset
Event to notify that the repository has had its configuration reset.
Public eventShutdownEvent
Event to notify that the repository has been shutdown.
Top
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

Reference