Hierarchy MembersApache log4net™ SDK Documentation
The Hierarchy type exposes the following members.
Constructors

  NameDescription
Public methodHierarchy 
Default constructor
Public methodHierarchy(ILoggerFactory)
Construct with a logger factory
Public methodHierarchy(PropertiesDictionary)
Construct with properties
Public methodHierarchy(PropertiesDictionary, ILoggerFactory)
Construct with properties and a logger factory
Back to Top
Methods

  NameDescription
Public methodAddRenderer
Adds an object renderer for a specific class.
(Inherited from LoggerRepositorySkeleton.)
Protected methodBasicRepositoryConfigure
Initialize the log4net system using the specified appenders
Public methodClear
Clear all logger definitions from the internal hashtable
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Public methodExists
Test if a logger exists
(Overrides LoggerRepositorySkeleton Exists(String).)
Protected methodOnlineFinalize
Allows an OnlineObject to attempt to free resources and perform other cleanup operations before the OnlineObject is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodGetAppenders
Returns all the Appenders that are currently configured
(Overrides LoggerRepositorySkeleton GetAppenders .)
Public methodGetCurrentLoggers
Returns all the currently defined loggers in the hierarchy as an Array
(Overrides LoggerRepositorySkeleton GetCurrentLoggers .)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodGetLogger(String)
Return a new logger instance named as the first parameter using the default factory.
(Overrides LoggerRepositorySkeleton GetLogger(String).)
Public methodGetLogger(String, ILoggerFactory)
Return a new logger instance named as the first parameter using factory.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Public methodIsDisabled
Test if this hierarchy is disabled for the specified Level.
Public methodLog
Log the logEvent through this hierarchy.
(Overrides LoggerRepositorySkeleton Log(LoggingEvent).)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnConfigurationChanged
Notify the registered listeners that the repository has had its configuration changed
(Inherited from LoggerRepositorySkeleton.)
Protected methodOnConfigurationReset
Notify the registered listeners that the repository has had its configuration reset
(Inherited from LoggerRepositorySkeleton.)
Protected methodOnLoggerCreationEvent
Sends a logger creation event to all registered listeners
Protected methodOnShutdown
Notify the registered listeners that the repository is shutting down
(Inherited from LoggerRepositorySkeleton.)
Public methodRaiseConfigurationChanged
Raise a configuration changed event on this repository
(Inherited from LoggerRepositorySkeleton.)
Public methodResetConfiguration
Reset all values contained in this hierarchy instance to their default.
(Overrides LoggerRepositorySkeleton ResetConfiguration .)
Public methodShutdown
Shutting down a hierarchy will safely close and remove all appenders in all loggers including the root logger.
(Overrides LoggerRepositorySkeleton Shutdown .)
Public methodOnlineToString
Returns a OnlineString that represents the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodXmlRepositoryConfigure
Initialize the log4net system using the specified config
Back to Top
Properties

  NameDescription
Public propertyConfigurationMessages
Contains a list of internal messages captures during the last configuration.
(Inherited from LoggerRepositorySkeleton.)
Public propertyConfigured
Flag indicates if this repository has been configured.
(Inherited from LoggerRepositorySkeleton.)
Public propertyEmittedNoAppenderWarning
Has no appender warning been emitted
Public propertyLevelMap
Get the level map for the Repository.
(Inherited from LoggerRepositorySkeleton.)
Public propertyLoggerFactory
Gets or sets the default ILoggerFactory instance.
Public propertyName
The name of the repository
(Inherited from LoggerRepositorySkeleton.)
Public propertyPluginMap
The plugin map for this repository.
(Inherited from LoggerRepositorySkeleton.)
Public propertyProperties
Repository specific properties
(Inherited from LoggerRepositorySkeleton.)
Public propertyRendererMap
RendererMap accesses the object renderer map for this repository.
(Inherited from LoggerRepositorySkeleton.)
Public propertyRoot
Get the root of this hierarchy
Public propertyThreshold
The threshold for all events in this repository
(Inherited from LoggerRepositorySkeleton.)
Back to Top
Events

  NameDescription
Public eventConfigurationChanged
Event to notify that the repository has had its configuration changed.
(Inherited from LoggerRepositorySkeleton.)
Public eventConfigurationReset
Event to notify that the repository has had its configuration reset.
(Inherited from LoggerRepositorySkeleton.)
Public eventLoggerCreatedEvent
Event used to notify that a logger has been created.
Public eventShutdownEvent
Event to notify that the repository has been shutdown.
(Inherited from LoggerRepositorySkeleton.)
Back to Top
See Also