DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions
dcmtk::log4cplus::spi::RootLogger Class Reference

RootLogger sits at the top of the logger hierachy. More...

+ Inheritance diagram for dcmtk::log4cplus::spi::RootLogger:

List of all members.

Public Member Functions

 RootLogger (Hierarchy &h, LogLevel ll)
 The root logger names itself as "root".
virtual LogLevel getChainedLogLevel () const
 Return the assigned LogLevel value without walking the logger hierarchy.
void setLogLevel (LogLevel ll)
 Setting a NOT_SET_LOG_LEVEL value to the LogLevel of the root logger may have catastrophic results.

Detailed Description

RootLogger 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 NOT_SET_LOG_LEVEL LogLevel. Second, since root logger cannot have a parent, the getChainedLogLevel method always returns the value of the ll field without walking the hierarchy.


Constructor & Destructor Documentation

The root logger names itself as "root".

However, the root logger cannot be retrieved by name.


Member Function Documentation

Setting a NOT_SET_LOG_LEVEL value to the LogLevel of the root logger may have catastrophic results.

We prevent this here.

Reimplemented from dcmtk::log4cplus::spi::LoggerImpl.


The documentation for this class was generated from the following file:


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027