Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.helpers |
This package is used internally.
|
org.apache.log4j.lf5 | |
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 | Description |
---|---|---|
class |
Hierarchy |
This class is specialized in retrieving loggers by name and also
maintaining the logger hierarchy.
|
Modifier and Type | Field | Description |
---|---|---|
protected LoggerRepository |
Category.repository |
Modifier and Type | Method | 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 | Description |
---|---|---|
void |
PropertyConfigurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository hierarchy) |
Read configuration options from url
configURL . |
void |
PropertyConfigurator.doConfigure(java.lang.String configFileName,
LoggerRepository hierarchy) |
Read configuration from a file.
|
void |
PropertyConfigurator.doConfigure(java.net.URL configURL,
LoggerRepository hierarchy) |
Read configuration options from url
configURL . |
void |
PropertyConfigurator.doConfigure(java.util.Properties properties,
LoggerRepository hierarchy) |
Read configuration options from
properties . |
protected void |
PropertyConfigurator.parseCatsAndRenderers(java.util.Properties props,
LoggerRepository hierarchy) |
Parse non-root elements, such non-root categories and renderers.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
OptionConverter.selectAndConfigure(java.io.InputStream inputStream,
java.lang.String clazz,
LoggerRepository hierarchy) |
Configure log4j given an
InputStream . |
static void |
OptionConverter.selectAndConfigure(java.net.URL url,
java.lang.String clazz,
LoggerRepository hierarchy) |
Configure log4j given a URL.
|
Modifier and Type | Method | Description |
---|---|---|
void |
DefaultLF5Configurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository repository) |
This is a dummy method that will throw an
IllegalStateException if used. |
void |
DefaultLF5Configurator.doConfigure(java.net.URL configURL,
LoggerRepository repository) |
This is a dummy method that will throw an
IllegalStateException if used. |
Constructor | Description |
---|---|
SocketNode(java.net.Socket socket,
LoggerRepository hierarchy) |
Modifier and Type | Class | Description |
---|---|---|
class |
NOPLoggerRepository |
No-operation implementation of LoggerRepository which is used when
LogManager.repositorySelector is erroneously nulled during class reloading.
|
Modifier and Type | Method | Description |
---|---|---|
LoggerRepository |
DefaultRepositorySelector.getLoggerRepository() |
|
LoggerRepository |
RepositorySelector.getLoggerRepository() |
Returns a
LoggerRepository depending on the
context. |
Modifier and Type | Method | Description |
---|---|---|
void |
Configurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository repository) |
Interpret a resource pointed by a InputStream and set up log4j accordingly.
|
void |
Configurator.doConfigure(java.net.URL url,
LoggerRepository repository) |
Interpret a resource pointed by a URL and set up log4j accordingly.
|
Constructor | Description |
---|---|
DefaultRepositorySelector(LoggerRepository repository) |
Modifier and Type | Method | Description |
---|---|---|
void |
ReloadingPropertyConfigurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository repository) |
|
void |
ReloadingPropertyConfigurator.doConfigure(java.net.URL url,
LoggerRepository repository) |
Modifier and Type | Method | Description |
---|---|---|
void |
DOMConfigurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository repository) |
Configure log4j by reading in a log4j.dtd compliant XML
configuration file.
|
void |
DOMConfigurator.doConfigure(java.io.Reader reader,
LoggerRepository repository) |
Configure log4j by reading in a log4j.dtd compliant XML
configuration file.
|
void |
DOMConfigurator.doConfigure(java.lang.String filename,
LoggerRepository repository) |
|
void |
DOMConfigurator.doConfigure(java.net.URL url,
LoggerRepository repository) |
|
void |
DOMConfigurator.doConfigure(org.w3c.dom.Element element,
LoggerRepository repository) |
Configure by taking in an DOM element.
|
protected void |
DOMConfigurator.doConfigure(org.xml.sax.InputSource inputSource,
LoggerRepository repository) |
Configure log4j by reading in a log4j.dtd compliant XML
configuration file.
|
Copyright 2000-2007 Apache Software Foundation.