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
public final class RootLogger extends Logger
RootLogger sits at the top of the logger hierarchy. It is a regular logger except that it provides several guarantees.First, it cannot be assigned a
nulllevel. Second, since root logger cannot have a parent, thegetChainedLevel()method always returns the value of the level field without walking the hierarchy.
-
-
Constructor Summary
Constructors Constructor Description RootLogger(Level level)The root logger names itself as "root".
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LevelgetChainedLevel()Gets the assigned level value without walking the logger hierarchy.voidsetLevel(Level level)Sets the log level.-
Methods inherited from class org.apache.log4j.Logger
getLogger, getLogger, getLogger, getRootLogger, isTraceEnabled, trace, trace
-
Methods 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, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isErrorEnabled, isFatalEnabled, isInfoEnabled, isWarnEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setPriority, setResourceBundle, shutdown, warn, warn
-
-