Public Member Functions | |
this (char[] name) | |
char[] | getName () |
char[] | getAddress () |
void | setName (char[] name) |
void | setAddress (char[] address) |
LoggerInstance | getRootLogger () |
synchronized LoggerInstance | getLogger (char[] name) |
int | opApply (int(*dg)(inout Logger)) |
Private Member Functions | |
void | insertLogger (LoggerInstance l) |
void | updateLoggers (LoggerInstance changed, bool force) |
void | propogate (LoggerInstance logger, LoggerInstance changed, bool force) |
Private Attributes | |
char[] | name |
char[] | address |
LoggerInstance | root |
LoggerInstance[char[]] | loggers |
Definition at line 369 of file Hierarchy.d.
|
Construct a hierarchy with the given name. Definition at line 383 of file Hierarchy.d. |
|
Return the name of this Hierarchy Definition at line 398 of file Hierarchy.d. Referenced by XmlLayout::format(). |
|
Return the address of this Hierarchy. This is typically attached when sending events to remote monitors. Definition at line 410 of file Hierarchy.d. Referenced by XmlLayout::format(). |
|
Set the name of this Hierarchy Definition at line 421 of file Hierarchy.d. |
|
Set the address of this Hierarchy. The address is attached used when sending events to remote monitors. Definition at line 433 of file Hierarchy.d. |
|
Return the root node. Definition at line 444 of file Hierarchy.d. Referenced by Manager::getRootLogger(). |
|
Return the instance of a Logger with the provided name. If the instance does not exist, it is created at this time. Definition at line 456 of file Hierarchy.d. References insertLogger(), loggers, and updateLoggers(). Referenced by Manager::getLogger(). |
|
Iterate over all Loggers in list Definition at line 486 of file Hierarchy.d. References Logger. |
|
Loggers are maintained in a sorted linked-list. The order is maintained such that the shortest name is at the root, and the longest at the tail. This is done so that updateLoggers() will always have a known environment to manipulate, making it much faster. Definition at line 513 of file Hierarchy.d. References Exception, LoggerInstance::name, LoggerInstance::next, and propogate(). Referenced by getLogger(). |
|
Propogate hierarchical changes across known loggers. This includes changes in the hierarchy itself, and to the various settings of child loggers with respect to their parent(s). Definition at line 552 of file Hierarchy.d. References propogate(). Referenced by getLogger(), LoggerInstance::setBreakpoint(), and LoggerInstance::setLevel(). |
|
Propogate changes in the hierarchy downward to child Loggers. Note that while 'parent' and 'breakpoint' are always forced to update, the update of 'level' is selectable. Definition at line 574 of file Hierarchy.d. References LoggerInstance::breakpoint, LoggerInstance::level, and ILevel::Level. Referenced by insertLogger(), and updateLoggers(). |
|
Definition at line 371 of file Hierarchy.d. Referenced by LoggerInstance::this(). |
|
Definition at line 371 of file Hierarchy.d. |
|
Definition at line 374 of file Hierarchy.d. |
|
Definition at line 375 of file Hierarchy.d. Referenced by getLogger(). |