public final class RootLogger extends Logger
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.
Constructor and Description |
---|
RootLogger(Level level)
The root logger names itself as "root".
|
Modifier and Type | Method and Description |
---|---|
Level |
getChainedLevel()
Gets the assigned level value without walking the logger hierarchy.
|
void |
setLevel(Level level)
Sets the log level.
|
getLogger, getLogger, getLogger, getRootLogger, isTraceEnabled, trace, trace
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
Copyright © 1999-2023 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.