org.apache.log4j.spi
Interface LoggerRepository
- Hierarchy
public interface LoggerRepository
A
LoggerRepository
is used to create and retrieve
Loggers
. The relation between loggers in a repository
depends on the repository but typically loggers are arranged in a
named hierarchy.
In addition to the creational methods, a
LoggerRepository
can be queried for existing loggers,
can act as a point of registry for events related to loggers.
- Ceki Gülcü
- 1.2
emitNoAppenderWarning
public void emitNoAppenderWarning(Category cat)
exists
public Logger exists(String name)
fireAddAppenderEvent
public void fireAddAppenderEvent(Category logger,
Appender appender)
getCurrentCategories
public Enumeration getCurrentCategories()
Please use getCurrentLoggers()
instead.
getCurrentLoggers
public Enumeration getCurrentLoggers()
getLogger
public Logger getLogger(String name)
getRootLogger
public Logger getRootLogger()
getThreshold
public Level getThreshold()
isDisabled
public boolean isDisabled(int level)
Is the repository disabled for a given level? The answer depends
on the repository threshold and the level
parameter. See also setThreshold
method.
resetConfiguration
public void resetConfiguration()
setThreshold
public void setThreshold(String val)
setThreshold
public void setThreshold(Level level)
Set the repository-wide threshold. All logging requests below the
threshold are immediately dropped. By default, the threshold is
set to Level.ALL
which has the lowest possible rank.
shutdown
public void shutdown()
Copyright 2000-2002 Apache Software Foundation.