logging :: Manager :: Class Manager
[hide private]
[frames] | no frames]

Class Manager

source code

There is [under normal circumstances] just one Manager instance, which holds the hierarchy of loggers.

Instance Methods [hide private]
 
__init__(self, rootnode)
Initialize the manager with the root node of the logger hierarchy.
source code
 
_fixupChildren(self, ph, alogger)
Ensure that children of the placeholder ph are connected to the specified logger.
source code
 
_fixupParents(self, alogger)
Ensure that there are either loggers or placeholders all the way from the specified logger to the root of the logger hierarchy.
source code
 
getLogger(self, name)
Get a logger with the specified name (channel name), creating it if it doesn't yet exist.
source code
Method Details [hide private]

getLogger(self, name)

source code 

Get a logger with the specified name (channel name), creating it if it doesn't yet exist. This name is a dot-separated hierarchical name, such as "a", "a.b", "a.b.c" or similar.

If a PlaceHolder existed for the specified name [i.e. the logger didn't exist but a child of it did], replace it with the created logger and fix up the parent/child references which pointed to the placeholder to now point to the logger.