Log4gHierarchy

Log4gHierarchy — Maintain the logger hierarchy

Synopsis

                    Log4gHierarchy;
                    Log4gHierarchyClass;
Log4gLoggerRepository * log4g_hierarchy_new             (Log4gLogger *root);
void                log4g_hierarchy_clear               (Log4gLoggerRepository *base);

Description

This class specializes in retrieving loggers by name and maintaining the logger hierarchy.

Note

The casual user has no need to deal with this class directly.

The structure of the logger hierarchy is maintained by the function log4g_logger_repository_get_logger() function. Children in the hierarchy link to their parent but parents do not have a pointer to their children. Descendant logger may be instantiated before their ancestors.

In the case where a descendant is created before a particular ancestor a provision node (Log4gProvisionNode) is created for the ancestor and the descendant is added to the provision node. Other descendants of the same ancestor are added to the previously created provision node.

Details

Log4gHierarchy

typedef struct {
} Log4gHierarchy;

The Log4gHierarchy structure does not have any public members.


Log4gHierarchyClass

typedef struct {
} Log4gHierarchyClass;

The Log4gHierarchyClass structure does not have any public members.


log4g_hierarchy_new ()

Log4gLoggerRepository * log4g_hierarchy_new             (Log4gLogger *root);

Create a new logger hierarchy.

root :

The root logger for the new hierarchy.

Returns :

A new logger hierarchy.

Since 0.1


log4g_hierarchy_clear ()

void                log4g_hierarchy_clear               (Log4gLoggerRepository *base);

Clear a logger hierarchy.

base :

The logger hierarchy to clear.

Since 0.1

See Also

Log4gLoggerRepository