| Package | Description |
|---|---|
| org.apache.log4j |
The main log4j package.
|
| org.apache.log4j.helpers |
This package is used internally.
|
| org.apache.log4j.net |
Package for remote logging.
|
| org.apache.log4j.spi |
Contains part of the System Programming Interface (SPI) needed to
extend log4j.
|
| org.apache.log4j.varia |
Contains various appenders, filters and other odds and ends.
|
| org.apache.log4j.xml |
XML based components.
|
| 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 |
| 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. |
LoggerRepository |
Category.getLoggerRepository()
Return the the
LoggerRepository where this Category is attached. |
static LoggerRepository |
LogManager.getLoggerRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyConfigurator.doConfigure(InputStream inputStream,
LoggerRepository hierarchy)
Read configuration options from url
configURL. |
void |
PropertyConfigurator.doConfigure(Properties properties,
LoggerRepository hierarchy)
Read configuration options from
properties. |
void |
PropertyConfigurator.doConfigure(String configFileName,
LoggerRepository hierarchy)
Read configuration from a file.
|
void |
PropertyConfigurator.doConfigure(URL configURL,
LoggerRepository hierarchy)
Read configuration options from url
configURL. |
protected void |
PropertyConfigurator.parseCatsAndRenderers(Properties props,
LoggerRepository hierarchy)
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.
|
| Constructor and Description |
|---|
SocketNode(Socket socket,
LoggerRepository hierarchy) |
| 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()
Returns a
LoggerRepository depending on the context. |
| Modifier and Type | Method and Description |
|---|---|
void |
Configurator.doConfigure(InputStream inputStream,
LoggerRepository repository)
Interpret a resource pointed by a InputStream and set up log4j accordingly.
|
void |
Configurator.doConfigure(URL url,
LoggerRepository repository)
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)
Configure by taking in an DOM element.
|
protected void |
DOMConfigurator.doConfigure(InputSource inputSource,
LoggerRepository repository)
Configure log4j by reading in a log4j.dtd compliant XML configuration file.
|
void |
DOMConfigurator.doConfigure(InputStream inputStream,
LoggerRepository repository)
Configure log4j by reading in a log4j.dtd compliant XML configuration file.
|
void |
DOMConfigurator.doConfigure(Reader reader,
LoggerRepository repository)
Configure log4j by reading in a log4j.dtd compliant XML configuration file.
|
void |
DOMConfigurator.doConfigure(String filename,
LoggerRepository repository) |
void |
DOMConfigurator.doConfigure(URL url,
LoggerRepository repository) |
Copyright © 1999–2024 QOS.CH Sarl (Switzerland). All rights reserved.