Package | Description |
---|---|
org.apache.log4j |
The main log4j package.
|
org.apache.log4j.helpers |
This package is used internally.
|
org.apache.log4j.jmx |
This package lets you manage log4j settings using JMX.
|
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 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 |
private LoggerRepository |
PropertyConfigurator.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 |
---|---|
(package private) void |
PropertyConfigurator.configureRootCategory(java.util.Properties props,
LoggerRepository hierarchy) |
void |
PropertyConfigurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository hierarchy)
Read configuration options from url
configURL . |
void |
PropertyConfigurator.doConfigure(java.util.Properties properties,
LoggerRepository hierarchy)
Read configuration options from
properties . |
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 . |
protected void |
PropertyConfigurator.parseCatsAndRenderers(java.util.Properties props,
LoggerRepository hierarchy)
Parse non-root elements, such non-root categories and renderers.
|
private void |
PropertyConfigurator.parseErrorHandler(ErrorHandler eh,
java.lang.String errorHandlerPrefix,
java.util.Properties props,
LoggerRepository hierarchy) |
(package private) void |
Category.setHierarchy(LoggerRepository repository)
Only the Hiearchy class can set the hiearchy of a
category.
|
Modifier and Type | Method and 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 | Field and Description |
---|---|
private LoggerRepository |
HierarchyDynamicMBean.hierarchy |
Modifier and Type | Method and 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. |
Modifier and Type | Field and Description |
---|---|
(package private) LoggerRepository |
SocketServer.genericHierarchy |
(package private) LoggerRepository |
SocketNode.hierarchy |
Modifier and Type | Method and Description |
---|---|
(package private) LoggerRepository |
SocketServer.configureHierarchy(java.net.InetAddress inetAddress) |
(package private) LoggerRepository |
SocketServer.genericHierarchy() |
Constructor and Description |
---|
SocketNode(java.net.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 | Field and Description |
---|---|
(package private) LoggerRepository |
DefaultRepositorySelector.repository |
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(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 and Description |
---|
DefaultRepositorySelector(LoggerRepository repository) |
Modifier and Type | Method and Description |
---|---|
void |
ReloadingPropertyConfigurator.doConfigure(java.io.InputStream inputStream,
LoggerRepository repository) |
void |
ReloadingPropertyConfigurator.doConfigure(java.net.URL url,
LoggerRepository repository) |
Modifier and Type | Field and Description |
---|---|
(package private) LoggerRepository |
DOMConfigurator.repository |
Modifier and Type | Method and Description |
---|---|
private void |
DOMConfigurator.doConfigure(DOMConfigurator.ParseAction action,
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.
|
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) |