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