|
NLOG4J 1.2.24 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.slf4j.impl.MarkerIgnoringBase org.apache.log4j.Category org.apache.log4j.Logger org.apache.log4j.spi.RootLogger
public final class RootLogger
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.
Field Summary |
---|
Fields inherited from class org.apache.log4j.Category |
---|
additive, level, name, parent, repository, resourceBundle |
Constructor Summary | |
---|---|
RootLogger(Level level)
The root logger names itself as "root". |
Method Summary | |
---|---|
Level |
getChainedLevel()
Return the assigned level value without walking the logger hierarchy. |
void |
setLevel(Level level)
Setting 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 |
Methods inherited from class org.apache.log4j.Category |
---|
addAppender, assertLog, callAppenders, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, exists, fatal, fatal, fatal, forcedLog, getAdditivity, getAllAppenders, getAppender, getChainedPriority, getCurrentCategories, getDefaultHierarchy, getEffectiveLevel, getHierarchy, getInstance, getInstance, getLevel, getLoggerRepository, getName, getParent, getPriority, getResourceBundle, getResourceBundleString, getRoot, info, info, info, info, info, info, isAttached, isDebugEnabled, isEnabledFor, isErrorEnabled, isInfoEnabled, isWarnEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setPriority, setResourceBundle, shutdown, warn, warn, warn, warn, warn, warn |
Methods inherited from class org.slf4j.impl.MarkerIgnoringBase |
---|
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isWarnEnabled, warn, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.slf4j.Logger |
---|
debug, debug, debug, debug, debug, debug, debug, debug, debug, debug, error, error, error, error, error, error, error, error, error, error, getName, info, info, info, info, info, info, info, info, info, info, isDebugEnabled, isDebugEnabled, isErrorEnabled, isErrorEnabled, isInfoEnabled, isInfoEnabled, isWarnEnabled, isWarnEnabled, warn, warn, warn, warn, warn, warn, warn, warn, warn, warn |
Constructor Detail |
---|
public RootLogger(Level level)
Method Detail |
---|
public final Level getChainedLevel()
public final void setLevel(Level level)
setLevel
in class Category
|
NLOG4J 1.2.24 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |