org.apache.log4j.spi.LoggerRepository |
Known Indirect Subclasses |
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add a
HierarchyEventListener event to the repository. | |||||||||||
Deprecated.
| |||||||||||
Get the repository-wide threshold.
| |||||||||||
Returns whether this repository is disabled for a given
level.
| |||||||||||
Another form of
setThreshold(Level) accepting a string
parameter instead of a Level . | |||||||||||
Set the repository-wide threshold.
| |||||||||||
Add a HierarchyEventListener
event to the repository.
Deprecated. Please use getCurrentLoggers()
instead.
Get the repository-wide threshold. See setThreshold(Level)
for an explanation.
Returns whether this repository is disabled for a given
level. The answer depends on the repository threshold and the
level
parameter. See also setThreshold(String)
method.
Another form of setThreshold(Level)
accepting a string
parameter instead of a 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.