Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members | Related Pages

RootCategory Class Reference

Inheritance diagram for RootCategory:

Logger AppenderAttachable ObjectImpl Object Object List of all members.

Public Member Functions

 RootCategory (const LevelPtr &level)
virtual const LevelPtrgetEffectiveLevel ()
void setLevel (const LevelPtr &level)

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

RootCategory const LevelPtr level  ) 
 

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:
Generated on Tue Jul 24 17:50:57 2007 for log4cxx by  doxygen 1.3.9.1