org.apache.log4j.spi
Class RootCategory
- AppenderAttachable
public final class RootCategory
RootCategory sits at the top of the category hierachy. It is a
regular category except that it provides several guarantees.
First, it cannot be assigned a
null
priority. Second, since root category cannot have a parent, the
getChainedLevel()
method always returns the value of the
level field without walking the hierarchy.
- Ceki Gülcü
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 , setLevel , setPriority , setResourceBundle , shutdown , warn , warn |
RootCategory
public RootCategory(Level level)
The root category names itself as "root". However, the root
category cannot be retrieved by name.
getChainedLevel
public final Level getChainedLevel()
Return the assigned level value without walking the category
hierarchy.
setLevel
public final void setLevel(Level level)
Setting a null value to the level of the root category may have catastrophic
results. We prevent this here.
- setLevel in interface Category
- 0.8.3
setPriority
public final void setPriority(Level level)
Copyright 2000-2002 Apache Software Foundation.