public final class NOPLoggerRepository extends Object implements LoggerRepository
| Constructor and Description |
|---|
NOPLoggerRepository() |
| Modifier and Type | Method and Description |
|---|---|
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() |
public void addHierarchyEventListener(HierarchyEventListener listener)
HierarchyEventListener event to the repository.addHierarchyEventListener in interface LoggerRepositorylistener - The listenerpublic void emitNoAppenderWarning(Category cat)
emitNoAppenderWarning in interface LoggerRepositorypublic Logger exists(String name)
exists in interface LoggerRepositorypublic void fireAddAppenderEvent(Category logger, Appender appender)
fireAddAppenderEvent in interface LoggerRepositorypublic Enumeration getCurrentCategories()
LoggerRepository.getCurrentLoggers() instead.getCurrentCategories in interface LoggerRepositorypublic Enumeration getCurrentLoggers()
getCurrentLoggers in interface LoggerRepositorypublic Logger getLogger(String name)
getLogger in interface LoggerRepositorypublic Logger getLogger(String name, LoggerFactory factory)
getLogger in interface LoggerRepositorypublic Logger getRootLogger()
getRootLogger in interface LoggerRepositorypublic Level getThreshold()
LoggerRepository.setThreshold(Level) for an explanation.getThreshold in interface LoggerRepositorypublic boolean isDisabled(int level)
level parameter. See also LoggerRepository.setThreshold(org.apache.log4j.Level)
method.isDisabled in interface LoggerRepositorylevel - The levelpublic void resetConfiguration()
resetConfiguration in interface LoggerRepositorypublic void setThreshold(Level level)
Level.ALL which has the lowest possible rank.setThreshold in interface LoggerRepositorylevel - The levelpublic void setThreshold(String val)
LoggerRepository.setThreshold(Level) accepting a string
parameter instead of a Level.setThreshold in interface LoggerRepositoryval - The threshold valuepublic void shutdown()
shutdown in interface LoggerRepositoryCopyright © 1999-2022 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.