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.
additive, level, name, parent, repository, resourceBundle
Constructor and Description |
---|
RootLogger(Level level)
The root logger names itself as "root".
|
Modifier and Type | Method and Description |
---|---|
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.
|
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, getResourceBundleString, getRoot, info, info, isAttached, isDebugEnabled, isEnabledFor, isInfoEnabled, l7dlog, l7dlog, log, log, log, removeAllAppenders, removeAppender, removeAppender, setAdditivity, setPriority, setResourceBundle, shutdown, warn, warn
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.