Package | Description |
---|---|
org.apache.log4j.config |
Log4j 1.x compatibility layer.
|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.
|
org.apache.logging.log4j.core.config.builder.api |
Configuration Builder API for programmatically configuring Log4j.
|
org.apache.logging.log4j.core.config.builder.impl |
Configuration Builder Implementation.
|
org.apache.logging.log4j.core.config.json |
Classes and interfaces supporting configuration of Log4j 2 with JSON.
|
org.apache.logging.log4j.core.config.properties |
Configuration using Properties files.
|
org.apache.logging.log4j.core.config.xml |
Classes and interfaces supporting configuration of Log4j 2 with XML.
|
org.apache.logging.log4j.core.config.yaml |
Classes and interfaces supporting configuration of Log4j 2 with YAML.
|
org.apache.logging.log4j.core.impl |
Log4j 2 private implementation classes.
|
Modifier and Type | Method | Description |
---|---|---|
Configuration |
Log4j1ConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Modifier and Type | Field | Description |
---|---|---|
static ConfigurationSource |
ConfigurationSource.NULL_SOURCE |
ConfigurationSource to use with Configurations that do not require a "real" configuration source.
|
Modifier and Type | Method | Description |
---|---|---|
static ConfigurationSource |
ConfigurationSource.fromResource(String resource,
ClassLoader loader) |
Retrieves the configuration via the ClassLoader.
|
static ConfigurationSource |
ConfigurationSource.fromUri(URI configLocation) |
Loads the configuration from a URI.
|
ConfigurationSource |
AbstractConfiguration.getConfigurationSource() |
|
ConfigurationSource |
Configuration.getConfigurationSource() |
Returns the source of this configuration.
|
protected ConfigurationSource |
ConfigurationFactory.getInputFromString(String config,
ClassLoader loader) |
Loads the configuration from the location represented by the String.
|
ConfigurationSource |
ConfigurationSource.resetInputStream() |
Returns a new
ConfigurationSource whose input stream is reset to the beginning. |
Modifier and Type | Method | Description |
---|---|---|
protected void |
AbstractConfiguration.createAdvertiser(String advertiserString,
ConfigurationSource configSource,
byte[] buffer,
String contentType) |
|
abstract Configuration |
ConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
|
static LoggerContext |
Configurator.initialize(ClassLoader loader,
ConfigurationSource source) |
Initializes the Logging Context.
|
static LoggerContext |
Configurator.initialize(ClassLoader loader,
ConfigurationSource source,
Object externalContext) |
Initializes the Logging Context.
|
Constructor | Description |
---|---|
AbstractConfiguration(LoggerContext loggerContext,
ConfigurationSource configurationSource) |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
ConfigurationBuilder<T> |
ConfigurationBuilder.setConfigurationSource(ConfigurationSource configurationSource) |
Sets the configuration source, if one exists.
|
Modifier and Type | Method | Description |
---|---|---|
void |
BuiltConfiguration.createAdvertiser(String advertiserString,
ConfigurationSource configSource) |
|
ConfigurationBuilder<T> |
DefaultConfigurationBuilder.setConfigurationSource(ConfigurationSource configurationSource) |
Set the ConfigurationSource.
|
Constructor | Description |
---|---|
BuiltConfiguration(LoggerContext loggerContext,
ConfigurationSource source,
Component rootComponent) |
Modifier and Type | Method | Description |
---|---|---|
Configuration |
JsonConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Constructor | Description |
---|---|
JsonConfiguration(LoggerContext loggerContext,
ConfigurationSource configSource) |
Modifier and Type | Method | Description |
---|---|---|
PropertiesConfiguration |
PropertiesConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
|
PropertiesConfigurationBuilder |
PropertiesConfigurationBuilder.setConfigurationSource(ConfigurationSource source) |
Constructor | Description |
---|---|
PropertiesConfiguration(LoggerContext loggerContext,
ConfigurationSource source,
Component root) |
Modifier and Type | Method | Description |
---|---|---|
Configuration |
XmlConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Returns the Configuration.
|
Constructor | Description |
---|---|
XmlConfiguration(LoggerContext loggerContext,
ConfigurationSource configSource) |
Modifier and Type | Method | Description |
---|---|---|
Configuration |
YamlConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Constructor | Description |
---|---|
YamlConfiguration(LoggerContext loggerContext,
ConfigurationSource configSource) |
Modifier and Type | Method | Description |
---|---|---|
LoggerContext |
Log4jContextFactory.getContext(String fqcn,
ClassLoader loader,
Object externalContext,
boolean currentContext,
ConfigurationSource source) |
Loads the LoggerContext using the ContextSelector.
|
Copyright © 1999-2018. 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.