log4cplus_spi_RootLogger(3)

log4cplus::spi::RootLogger(3) log4cplus log4cplus::spi::RootLogger(3)

NAME

log4cplus::spi::RootLogger - RootLogger sits at the top of the logger hierachy.

SYNOPSIS

#include <rootlogger.h>

Inherits log4cplus::spi::LoggerImpl.

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)
Setting a NOT_SET_LOG_LEVEL value to the LogLevel of the root logger may have catastrophic results.

Additional Inherited Members

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.

Definition at line 47 of file rootlogger.h.

Constructor & Destructor Documentation

log4cplus::spi::RootLogger::RootLogger (Hierarchy & h, LogLevel ll)

The root logger names itself as 'root'. However, the root logger cannot be retrieved by name.

Member Function Documentation

virtual LogLevel log4cplus::spi::RootLogger::getChainedLogLevel () const [virtual]

Return the assigned LogLevel value without walking the logger hierarchy.

Reimplemented from log4cplus::spi::LoggerImpl.

void log4cplus::spi::RootLogger::setLogLevel (LogLevel)

Setting a NOT_SET_LOG_LEVEL value to the LogLevel of the root logger may have catastrophic results. We prevent this here.

Author

Generated automatically by Doxygen for log4cplus from the source code.

Fri Jun 18 2021 Version 2.0.6