Package org.apache.log4j.spi
Class RootLogger
java.lang.Object
org.apache.log4j.Category
org.apache.log4j.Logger
org.apache.log4j.spi.RootLogger
- All Implemented Interfaces:
AppenderAttachable
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 null level. Second, since root logger cannot have a parent, the
getChainedLevel() method always returns the value of the level field without walking the hierarchy.
- Author:
- Ceki Gülcü
-
Field Summary
Fields inherited from class org.apache.log4j.Category
additive, level, name, parent, repository, resourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal LevelReturn the assigned level value without walking the logger hierarchy.final voidSetting a null value to the level of the root logger may have catastrophic results.Methods inherited from class org.apache.log4j.Logger
getLogger, getLogger, getLogger, getRootLogger, isTraceEnabled, trace, traceMethods inherited from class org.apache.log4j.Category
addAppender, assertLog, callAppenders, debug, debug, error, error, exists, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setPriority, setResourceBundle, shutdown, warn, warn
-
Constructor Details
-
RootLogger
The root logger names itself as "root". However, the root logger cannot be retrieved by name.
-
-
Method Details