FileDocCategorySizeDatePackage
RootCategory.javaAPI DocApache log4j 1.2.151864Sat Aug 25 00:09:40 BST 2007org.apache.log4j.spi

RootCategory

public final class RootCategory extends Logger
deprecated
Replaced by {@link RootLogger}.

Fields Summary
Constructors Summary
public RootCategory(Level level)
The root category names itself as "root". However, the root category cannot be retrieved by name.

    super("root");
    setLevel(level);
  
Methods Summary
public final org.apache.log4j.LevelgetChainedLevel()
Return the assigned level value without walking the category hierarchy.

    return level;
  
public final voidsetLevel(org.apache.log4j.Level level)
Setting a null value to the level of the root category may have catastrophic results. We prevent this here.

since
0.8.3

    if(level == null) {
      LogLog.error("You have tried to set a null level to root.",
		   new Throwable());
    }
    else {
      this.level = level;
    }
  
public final voidsetPriority(org.apache.log4j.Level level)

    setLevel(level);