Package org.apache.log4j.spi
Interface LoggerRepository
public interface LoggerRepository
A 
LoggerRepository is used to create and retrieve
 Loggers. The relation between loggers in a repository
 depends on the repository but typically loggers are arranged in a
 named hierarchy.
 
 In addition to the creational methods, a
 LoggerRepository can be queried for existing loggers,
 can act as a point of registry for events related to loggers.
- Since:
- 1.2
- Author:
- Ceki Gülcü
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdd aHierarchyEventListenerevent to the repository.voidvoidfireAddAppenderEvent(Category logger, Appender appender) Deprecated.getLogger(String name, LoggerFactory factory) Get the repository-wide threshold.booleanisDisabled(int level) Returns whether this repository is disabled for a given level.voidvoidsetThreshold(String val) Another form ofsetThreshold(Level)accepting a string parameter instead of aLevel.voidsetThreshold(Level level) Set the repository-wide threshold.voidshutdown()
- 
Method Details- 
addHierarchyEventListenerAdd aHierarchyEventListenerevent to the repository.- Parameters:
- listener- a listener
 
- 
isDisabledReturns whether this repository is disabled for a given level. The answer depends on the repository threshold and thelevelparameter. See alsosetThreshold(org.apache.log4j.Level)method.
- 
setThresholdSet the repository-wide threshold. All logging requests below the threshold are immediately dropped. By default, the threshold is set toLevel.ALLwhich has the lowest possible rank.
- 
setThresholdAnother form ofsetThreshold(Level)accepting a string parameter instead of aLevel.
- 
emitNoAppenderWarning
- 
getThresholdGet the repository-wide threshold. SeesetThreshold(Level)for an explanation.
- 
getLogger
- 
getLogger
- 
getRootLogger
- 
exists
- 
shutdownvoid shutdown()
- 
getCurrentLoggers
- 
getCurrentCategoriesDeprecated. Please usegetCurrentLoggers()instead.
- 
fireAddAppenderEvent
- 
resetConfigurationvoid resetConfiguration()
 
-