Package | Description |
---|---|
org.apache.log4j |
Log4j 1.x compatibility layer.
|
org.apache.log4j.helpers |
Log4j 1.x compatibility layer.
|
org.apache.log4j.spi |
Log4j 1.x compatibility layer.
|
org.apache.log4j.varia | |
org.apache.log4j.xml |
Log4j 1.x compatibility layer.
|
Modifier and Type | Class and Description |
---|---|
class |
Hierarchy
This class is specialized in retrieving loggers by name and also maintaining the logger hierarchy.
|
Modifier and Type | Field and Description |
---|---|
protected LoggerRepository |
Category.repository
Categories need to know what Hierarchy they are in.
|
Modifier and Type | Method and Description |
---|---|
static LoggerRepository |
Category.getDefaultHierarchy()
Deprecated.
Please use
LogManager.getLoggerRepository() instead. |
LoggerRepository |
Category.getHierarchy()
Deprecated.
Please use
Category.getLoggerRepository() instead. |
static LoggerRepository |
LogManager.getLoggerRepository() |
LoggerRepository |
Category.getLoggerRepository()
Gets the the
LoggerRepository where this Category is attached. |
Modifier and Type | Method and Description |
---|---|
void |
PropertyConfigurator.doConfigure(InputStream inputStream,
LoggerRepository loggerRepository)
Reads configuration options from an InputStream.
|
void |
PropertyConfigurator.doConfigure(Properties properties,
LoggerRepository loggerRepository)
Reads configuration options from
properties . |
void |
PropertyConfigurator.doConfigure(String fileName,
LoggerRepository loggerRepository)
Reads configuration options from configuration file.
|
void |
PropertyConfigurator.doConfigure(URL url,
LoggerRepository loggerRepository)
Read configuration options from url
configURL . |
protected void |
PropertyConfigurator.parseCatsAndRenderers(Properties properties,
LoggerRepository loggerRepository)
Parse non-root elements, such non-root categories and renderers.
|
Modifier and Type | Method and Description |
---|---|
static void |
OptionConverter.selectAndConfigure(InputStream inputStream,
String clazz,
LoggerRepository hierarchy)
Configure log4j given an
InputStream . |
static void |
OptionConverter.selectAndConfigure(URL url,
String clazz,
LoggerRepository hierarchy)
Configure log4j given a URL.
|
Modifier and Type | Class and Description |
---|---|
class |
NOPLoggerRepository
No-operation implementation of LoggerRepository which is used when LogManager.repositorySelector is erroneously
nulled during class reloading.
|
Modifier and Type | Method and Description |
---|---|
LoggerRepository |
DefaultRepositorySelector.getLoggerRepository() |
LoggerRepository |
RepositorySelector.getLoggerRepository()
Gets a
LoggerRepository depending on the context. |
Modifier and Type | Method and Description |
---|---|
void |
Configurator.doConfigure(InputStream inputStream,
LoggerRepository loggerRepository)
Interpret a resource pointed by a InputStream and set up log4j accordingly.
|
void |
Configurator.doConfigure(URL url,
LoggerRepository loggerRepository)
Interpret a resource pointed by a URL and set up log4j accordingly.
|
Constructor and Description |
---|
DefaultRepositorySelector(LoggerRepository repository) |
Modifier and Type | Method and Description |
---|---|
void |
ReloadingPropertyConfigurator.doConfigure(InputStream inputStream,
LoggerRepository repository) |
void |
ReloadingPropertyConfigurator.doConfigure(URL url,
LoggerRepository repository) |
Modifier and Type | Method and Description |
---|---|
void |
DOMConfigurator.doConfigure(Element element,
LoggerRepository repository) |
void |
DOMConfigurator.doConfigure(InputStream inputStream,
LoggerRepository repository) |
void |
DOMConfigurator.doConfigure(Reader reader,
LoggerRepository repository) |
void |
DOMConfigurator.doConfigure(String fileName,
LoggerRepository repository) |
void |
DOMConfigurator.doConfigure(URL url,
LoggerRepository repository) |
Copyright © 1999-2023 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.