public interface LoggerRepository
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.
Modifier and Type | Method and Description |
---|---|
void |
addHierarchyEventListener(HierarchyEventListener listener)
Add a
HierarchyEventListener event to the repository. |
void |
emitNoAppenderWarning(Category cat) |
Logger |
exists(java.lang.String name) |
void |
fireAddAppenderEvent(Category logger,
Appender appender) |
java.util.Enumeration |
getCurrentCategories()
Deprecated.
|
java.util.Enumeration |
getCurrentLoggers() |
Logger |
getLogger(java.lang.String name) |
Logger |
getLogger(java.lang.String name,
LoggerFactory factory) |
Logger |
getRootLogger() |
Level |
getThreshold()
Get the repository-wide threshold.
|
boolean |
isDisabled(int level)
Returns whether this repository is disabled for a given
level.
|
void |
resetConfiguration() |
void |
setThreshold(Level level)
Set the repository-wide threshold.
|
void |
setThreshold(java.lang.String val)
Another form of
setThreshold(Level) accepting a string
parameter instead of a Level . |
void |
shutdown() |
void addHierarchyEventListener(HierarchyEventListener listener)
HierarchyEventListener
event to the repository.boolean isDisabled(int level)
level
parameter. See also setThreshold(org.apache.log4j.Level)
method.void setThreshold(Level level)
Level.ALL
which has the lowest possible rank.void setThreshold(java.lang.String val)
setThreshold(Level)
accepting a string
parameter instead of a Level
.void emitNoAppenderWarning(Category cat)
Level getThreshold()
setThreshold(Level)
for an explanation.Logger getLogger(java.lang.String name)
Logger getLogger(java.lang.String name, LoggerFactory factory)
Logger getRootLogger()
Logger exists(java.lang.String name)
void shutdown()
java.util.Enumeration getCurrentLoggers()
java.util.Enumeration getCurrentCategories()
getCurrentLoggers()
instead.void resetConfiguration()
Copyright © 2010 - 2020 Adobe. All Rights Reserved