Inheritance diagram for RootCategory:
Public Member Functions | |
RootCategory (const LevelPtr &level) | |
virtual const LevelPtr & | getEffectiveLevel () |
void | setLevel (const LevelPtr &level) |
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.
RootCategory | ( | const LevelPtr & | level | ) |
The root logger names itself as "root". However, the root logger cannot be retrieved by name.
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.