RootCategory Class Reference

Inheritance diagram for RootCategory:

Inheritance graph
[legend]
Collaboration diagram for RootCategory:

Collaboration graph
[legend]
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:
  • rootcategory.h
  • rootcategory.cpp

Copyright © 1999-2004, Apache Software Foundation