Log4g Reference Manual | ||||
---|---|---|---|---|
Top | Description |
Log4gHierarchy; Log4gHierarchyClass; Log4gLoggerRepository * log4g_hierarchy_new (Log4gLogger *root
); void log4g_hierarchy_clear (Log4gLoggerRepository *base
);
This class specializes in retrieving loggers by name and maintaining the logger hierarchy.
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.
typedef struct { } Log4gHierarchy;
The Log4gHierarchy structure does not have any public members.
typedef struct { } Log4gHierarchyClass;
The Log4gHierarchyClass structure does not have any public members.
Log4gLoggerRepository * log4g_hierarchy_new (Log4gLogger *root
);
Create a new logger hierarchy.
|
The root logger for the new hierarchy. |
Returns : |
A new logger hierarchy. |
Since 0.1
void log4g_hierarchy_clear (Log4gLoggerRepository *base
);
Clear a logger hierarchy.
|
The logger hierarchy to clear. |
Since 0.1