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 LoggerRepository
listener
- The listenerpublic void emitNoAppenderWarning(Category cat)
emitNoAppenderWarning
in interface LoggerRepository
public Logger exists(String name)
exists
in interface LoggerRepository
public void fireAddAppenderEvent(Category logger, Appender appender)
fireAddAppenderEvent
in interface LoggerRepository
public Enumeration getCurrentCategories()
LoggerRepository.getCurrentLoggers()
instead.getCurrentCategories
in interface LoggerRepository
public Enumeration getCurrentLoggers()
getCurrentLoggers
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 Level getThreshold()
LoggerRepository.setThreshold(Level)
for an explanation.getThreshold
in interface LoggerRepository
public boolean isDisabled(int level)
level
parameter. See also LoggerRepository.setThreshold(org.apache.log4j.Level)
method.isDisabled
in interface LoggerRepository
level
- The levelpublic void resetConfiguration()
resetConfiguration
in interface LoggerRepository
public void setThreshold(Level level)
Level.ALL
which has the lowest possible rank.setThreshold
in interface LoggerRepository
level
- The levelpublic void setThreshold(String val)
LoggerRepository.setThreshold(Level)
accepting a string
parameter instead of a Level
.setThreshold
in interface LoggerRepository
val
- The threshold valuepublic void shutdown()
shutdown
in interface LoggerRepository
Copyright © 1999-2024 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.