|
Log4j Version 1.2.7: Interface LoggerRepository
org.apache.log4j.spi
|
Method Summary | |
void |
addHierarchyEventListener(HierarchyEventListener listener)
Add a HierarchyEventListener event to the repository. |
void |
emitNoAppenderWarning(Category cat)
|
Logger |
exists(String name)
|
void |
fireAddAppenderEvent(Category logger,
Appender appender)
|
Enumeration |
getCurrentCategories()
Deprecated. Please use getCurrentLoggers() instead. |
Enumeration |
getCurrentLoggers()
|
Logger |
getLogger(String name)
|
Logger |
getLogger(String name,
LoggerFactory factory)
|
Logger |
getRootLogger()
|
Level |
getThreshold()
Get the repository-wide threshold. |
boolean |
isDisabled(int level)
Is the repository disabled for a given level? |
void |
resetConfiguration()
|
void |
setThreshold(Level level)
Set the repository-wide threshold. |
void |
setThreshold(String val)
Another form of setThreshold(Level) accepting a string
parameter instead of a Level . |
void |
shutdown()
|
Method Detail |
public void addHierarchyEventListener(HierarchyEventListener listener)
HierarchyEventListener
event to the repository.public boolean isDisabled(int level)
level
parameter. See also setThreshold(org.apache.log4j.Level)
method.public void setThreshold(Level level)
Level.ALL
which has the lowest possible rank.public void setThreshold(String val)
setThreshold(Level)
accepting a string
parameter instead of a Level
.public void emitNoAppenderWarning(Category cat)
public Level getThreshold()
setThreshold(Level)
for an explanation.public Logger getLogger(String name)
public Logger getLogger(String name, LoggerFactory factory)
public Logger getRootLogger()
public Logger exists(String name)
public void shutdown()
public Enumeration getCurrentLoggers()
public Enumeration getCurrentCategories()
getCurrentLoggers()
instead.
public void fireAddAppenderEvent(Category logger, Appender appender)
public void resetConfiguration()
|
Log4j 1.2.7 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |