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
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
Copyright © 1999–2023 QOS.CH Sarl (Switzerland). All rights reserved.