Hierarchy ClassApache log4net™ SDK Documentation
Hierarchical organization of loggers
Inheritance Hierarchy

OnlineSystem Object
  log4net.Repository LoggerRepositorySkeleton
    log4net.Repository.Hierarchy Hierarchy

Namespace: log4net.Repository.Hierarchy
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public class Hierarchy : LoggerRepositorySkeleton, IBasicRepositoryConfigurator, 
	IXmlRepositoryConfigurator
Remarks

The casual user should not have to deal with this class directly.

This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy. Implements the ILoggerRepository interface.

The structure of the logger hierarchy is maintained by the [M:GetLogger(string)] method. The hierarchy is such that children link to their parent but parents do not have any references to their children. Moreover, loggers can be instantiated in any order, in particular descendant before ancestor.

In case a descendant is created before a particular ancestor, then it creates a provision node for the ancestor and adds itself to the provision node. Other descendants of the same ancestor add themselves to the previously created provision node.

See Also