|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.log4j.spi.NOPLoggerRepository
public final class NOPLoggerRepository
No-operation implementation of LoggerRepository which is used when LogManager.repositorySelector is erroneously nulled during class reloading.
Constructor Summary | |
---|---|
NOPLoggerRepository()
|
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. |
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)
Returns whether this repository is disabled for a given level. |
void |
resetConfiguration()
|
void |
setThreshold(Level level)
Set the repository-wide threshold. |
void |
setThreshold(String val)
Another form of LoggerRepository.setThreshold(Level) accepting a string
parameter instead of a Level . |
void |
shutdown()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NOPLoggerRepository()
Method Detail |
---|
public void addHierarchyEventListener(HierarchyEventListener listener)
HierarchyEventListener
event to the repository.
addHierarchyEventListener
in interface LoggerRepository
public boolean isDisabled(int level)
level
parameter. See also LoggerRepository.setThreshold(org.apache.log4j.Level)
method.
isDisabled
in interface LoggerRepository
public void setThreshold(Level level)
Level.ALL
which has the lowest possible rank.
setThreshold
in interface LoggerRepository
public void setThreshold(String val)
LoggerRepository.setThreshold(Level)
accepting a string
parameter instead of a Level
.
setThreshold
in interface LoggerRepository
public void emitNoAppenderWarning(Category cat)
emitNoAppenderWarning
in interface LoggerRepository
public Level getThreshold()
LoggerRepository.setThreshold(Level)
for an explanation.
getThreshold
in interface LoggerRepository
public Logger getLogger(String name)
getLogger
in interface LoggerRepository
public Logger getLogger(String name, LoggerFactory factory)
getLogger
in interface LoggerRepository
public Logger getRootLogger()
getRootLogger
in interface LoggerRepository
public Logger exists(String name)
exists
in interface LoggerRepository
public void shutdown()
shutdown
in interface LoggerRepository
public Enumeration getCurrentLoggers()
getCurrentLoggers
in interface LoggerRepository
public Enumeration getCurrentCategories()
LoggerRepository.getCurrentLoggers()
instead.
getCurrentCategories
in interface LoggerRepository
public void fireAddAppenderEvent(Category logger, Appender appender)
fireAddAppenderEvent
in interface LoggerRepository
public void resetConfiguration()
resetConfiguration
in interface LoggerRepository
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |