RootCategory Class ReferenceInheritance diagram for RootCategory:
[legend]Collaboration diagram for RootCategory:
[legend]List of all members.
Detailed Description
RootCategory sits at the top of the logger hierachy. It is a regular logger except that it provides several guarantees.
First, it cannot be assigned a null level. Second, since root logger cannot have a parent, the getEffectiveLevel method always returns the value of the level field without walking the hierarchy.
Constructor & Destructor Documentation
|
The root logger names itself as "root". However, the root logger cannot be retrieved by name. |
Member Function Documentation
const LevelPtr & getEffectiveLevel |
( |
|
) |
[virtual] |
|
|
Return the assigned level value without walking the category hierarchy. |
void setLevel |
( |
const LevelPtr & |
level |
) |
[virtual] |
|
|
Setting a null value to the level of the root category may have catastrophic results. We prevent this here.
Reimplemented from Logger. |
The documentation for this class was generated from the following files:
- rootcategory.h
- rootcategory.cpp
|