Package | Description |
---|---|
org.apache.logging.log4j.core.config |
Configuration of Log4j 2.
|
org.apache.logging.log4j.core.config.json |
Classes and interfaces supporting configuration of Log4j 2 with JSON.
|
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 | Field and Description |
---|---|
static ConfigurationSource |
ConfigurationSource.NULL_SOURCE |
Modifier and Type | Method and Description |
---|---|
ConfigurationSource |
AbstractConfiguration.getConfigurationSource() |
ConfigurationSource |
Configuration.getConfigurationSource()
Returns the source of this configuration.
|
protected ConfigurationSource |
ConfigurationFactory.getInputFromResource(String resource,
ClassLoader loader)
Retrieve the configuration via the ClassLoader.
|
protected ConfigurationSource |
ConfigurationFactory.getInputFromString(String config,
ClassLoader loader)
Load the configuration from the location represented by the String.
|
protected ConfigurationSource |
ConfigurationFactory.getInputFromUri(URI configLocation)
Load the configuration from a URI.
|
ConfigurationSource |
ConfigurationSource.resetInputStream()
Returns a new
ConfigurationSource whose input stream is reset to the beginning. |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractConfiguration.createAdvertiser(String advertiserString,
ConfigurationSource configSource,
byte[] buffer,
String contentType) |
abstract Configuration |
ConfigurationFactory.getConfiguration(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 and Description |
---|
AbstractConfiguration(ConfigurationSource configurationSource)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Configuration |
JsonConfigurationFactory.getConfiguration(ConfigurationSource source) |
Constructor and Description |
---|
JsonConfiguration(ConfigurationSource configSource) |
Modifier and Type | Method and Description |
---|---|
Configuration |
XmlConfigurationFactory.getConfiguration(ConfigurationSource source)
Returns the Configuration.
|
Constructor and Description |
---|
XmlConfiguration(ConfigurationSource configSource) |
Modifier and Type | Method and Description |
---|---|
Configuration |
YamlConfigurationFactory.getConfiguration(ConfigurationSource source) |
Constructor and Description |
---|
YamlConfiguration(ConfigurationSource configSource) |
Modifier and Type | Method and Description |
---|---|
LoggerContext |
Log4jContextFactory.getContext(String fqcn,
ClassLoader loader,
Object externalContext,
boolean currentContext,
ConfigurationSource source)
Loads the LoggerContext using the ContextSelector.
|
Copyright © 1999-2021 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.