public final class NOPLoggerRepository extends java.lang.Object implements LoggerRepository
构造器和说明 |
---|
NOPLoggerRepository() |
限定符和类型 | 方法和说明 |
---|---|
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
LoggerRepository.setThreshold(Level) accepting a string
parameter instead of a Level . |
void |
shutdown() |
public void addHierarchyEventListener(HierarchyEventListener listener)
HierarchyEventListener
event to the repository.addHierarchyEventListener
在接口中 LoggerRepository
public boolean isDisabled(int level)
level
parameter. See also LoggerRepository.setThreshold(com.fr.third.apache.log4j.Level)
method.isDisabled
在接口中 LoggerRepository
public void setThreshold(Level level)
Level.ALL
which has the lowest possible rank.setThreshold
在接口中 LoggerRepository
public void setThreshold(java.lang.String val)
LoggerRepository.setThreshold(Level)
accepting a string
parameter instead of a Level
.setThreshold
在接口中 LoggerRepository
public void emitNoAppenderWarning(Category cat)
emitNoAppenderWarning
在接口中 LoggerRepository
public Level getThreshold()
LoggerRepository.setThreshold(Level)
for an explanation.getThreshold
在接口中 LoggerRepository
public Logger getLogger(java.lang.String name)
getLogger
在接口中 LoggerRepository
public Logger getLogger(java.lang.String name, LoggerFactory factory)
getLogger
在接口中 LoggerRepository
public Logger getRootLogger()
getRootLogger
在接口中 LoggerRepository
public Logger exists(java.lang.String name)
exists
在接口中 LoggerRepository
public void shutdown()
shutdown
在接口中 LoggerRepository
public java.util.Enumeration getCurrentLoggers()
getCurrentLoggers
在接口中 LoggerRepository
public java.util.Enumeration getCurrentCategories()
LoggerRepository.getCurrentLoggers()
instead.getCurrentCategories
在接口中 LoggerRepository
public void fireAddAppenderEvent(Category logger, Appender appender)
fireAddAppenderEvent
在接口中 LoggerRepository
public void resetConfiguration()
resetConfiguration
在接口中 LoggerRepository