Package org.apache.log4j.spi
Interface LoggerRepository
Deprecated.
Apache Log4j 1 has reached end of life in 2015 and is no longer supported.
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
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Add aHierarchyEventListenerevent to the repository.voidDeprecated.Deprecated.voidfireAddAppenderEvent(Category logger, Appender appender) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getLogger(String name, LoggerFactory factory) Deprecated.Deprecated.Deprecated.Get the repository-wide threshold.booleanisDisabled(int level) Deprecated.Returns whether this repository is disabled for a given level.voidDeprecated.voidsetThreshold(String val) Deprecated.Another form ofsetThreshold(Level)accepting a string parameter instead of aLevel.voidsetThreshold(Level level) Deprecated.Set the repository-wide threshold.voidshutdown()Deprecated.
-
Method Details
-
addHierarchyEventListener
Deprecated.Add aHierarchyEventListenerevent to the repository. -
isDisabled
boolean isDisabled(int level) Deprecated.Returns 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. -
setThreshold
Deprecated.Set 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. -
setThreshold
Deprecated.Another form ofsetThreshold(Level)accepting a string parameter instead of aLevel. -
emitNoAppenderWarning
Deprecated. -
getThreshold
Level getThreshold()Deprecated.Get the repository-wide threshold. SeesetThreshold(Level)for an explanation. -
getLogger
Deprecated. -
getLogger
Deprecated. -
getRootLogger
Logger getRootLogger()Deprecated. -
exists
Deprecated. -
shutdown
void shutdown()Deprecated. -
getCurrentLoggers
Enumeration getCurrentLoggers()Deprecated. -
getCurrentCategories
Enumeration getCurrentCategories()Deprecated.Deprecated. Please usegetCurrentLoggers()instead. -
fireAddAppenderEvent
Deprecated. -
resetConfiguration
void resetConfiguration()Deprecated.
-