## Class LoggerRoot

Description

The root logger.

- version: $Revision: 1343190 $
- see: Logger

Located in /log4php/LoggerRoot.php (line 28)

    Logger
       |
       --LoggerRoot

Method Summary
LoggerRoot __construct ([LoggerLevel $level = null])
LoggerLevel getEffectiveLevel ()
void setLevel ([LoggerLevel $level = null])
void setParent (Logger $parent)
Methods
Constructor __construct (line 34)

Constructor

- access: public

LoggerRoot __construct ([LoggerLevel $level = null])

- integer $level: initial log level

Redefinition of:

Logger::__construct()
  Constructor.

getEffectiveLevel (line 46)

- return: the level
- access: public

LoggerLevel getEffectiveLevel ()

Redefinition of:

Logger::getEffectiveLevel()
  Starting from this Logger, search the Logger hierarchy for a non-null level and return it.

setLevel (line 56)

Override level setter to prevent setting the root logger's level to null. Root logger must always have a level.

- access: public

void setLevel ([LoggerLevel $level = null])

- LoggerLevel $level

Redefinition of:

Logger::setLevel()
  Set the Logger level.

setParent (line 68)

Override parent setter. Root logger cannot have a parent.

- access: public

void setParent (Logger $parent)

- Logger $parent

Redefinition of:

Logger::setParent()
  Sets the parent logger.

#### Inherited Methods

Inherited From Logger

> Logger::__construct()
> Logger::addAppender()
> Logger::assertLog()
> Logger::callAppenders()
> Logger::clear()
> Logger::configure()
> Logger::debug()
> Logger::error()
> Logger::exists()
> Logger::fatal()
> Logger::forcedLog()
> Logger::getAdditivity()
> Logger::getAllAppenders()
> Logger::getAppender()
> Logger::getCurrentLoggers()
> Logger::getEffectiveLevel()
> Logger::getHierarchy()
> Logger::getLevel()
> Logger::getLogger()
> Logger::getName()
> Logger::getParent()
> Logger::getRootLogger()
> Logger::info()
> Logger::isAttached()
> Logger::isDebugEnabled()
> Logger::isEnabledFor()
> Logger::isErrorEnabled()
> Logger::isFatalEnabled()
> Logger::isInfoEnabled()
> Logger::isTraceEnabled()
> Logger::isWarnEnabled()
> Logger::log()
> Logger::logEvent()
> Logger::removeAllAppenders()
> Logger::removeAppender()
> Logger::resetConfiguration()
> Logger::setAdditivity()
> Logger::setLevel()
> Logger::setParent()
> Logger::shutdown()
> Logger::trace()
> Logger::warn()

Documentation generated on Fri, 10 Apr 2026 12:21:05 +0900 by phpDocumentor 1.4.4