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.
Public Member Functions | |
RootLogger (log4cxx::helpers::Pool &pool, const LevelPtr &level) | |
The root logger names itself as "root". | |
virtual const LevelPtr & | getEffectiveLevel () const |
Return the assigned level value without walking the logger hierarchy. | |
void | setLevel (const LevelPtr &level) |
Setting a null value to the level of the root logger may have catastrophic results. |
|
The root logger names itself as "root". However, the root logger cannot be retrieved by name. |
|
Return the assigned level value without walking the logger hierarchy.
Reimplemented from Logger. |
|
Setting a null value to the level of the root logger may have catastrophic results. We prevent this here. Reimplemented from Logger. |