Package | Description |
---|---|
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.
|
org.apache.logging.log4j.core.util |
Log4j 2 helper classes.
|
Modifier and Type | Field and Description |
---|---|
static ConfigurationSource |
ConfigurationSource.COMPOSITE_SOURCE
ConfigurationSource to use with
CompositeConfiguration . |
static ConfigurationSource |
ConfigurationSource.NULL_SOURCE
ConfigurationSource to use with Configurations that do not require a "real" configuration source.
|
Modifier and Type | Method and 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)
Deprecated.
|
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(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.
|
protected void |
AbstractConfiguration.initializeWatchers(Reconfigurable reconfigurable,
ConfigurationSource configSource,
int monitorIntervalSeconds) |
Constructor and Description |
---|
AbstractConfiguration(LoggerContext loggerContext,
ConfigurationSource configurationSource)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ConfigurationBuilder<T> |
ConfigurationBuilder.setConfigurationSource(ConfigurationSource configurationSource)
Sets the configuration source, if one exists.
|
Modifier and Type | Method and Description |
---|---|
void |
BuiltConfiguration.createAdvertiser(String advertiserString,
ConfigurationSource configSource) |
ConfigurationBuilder<T> |
DefaultConfigurationBuilder.setConfigurationSource(ConfigurationSource configurationSource)
Set the ConfigurationSource.
|
Constructor and Description |
---|
BuiltConfiguration(LoggerContext loggerContext,
ConfigurationSource source,
Component rootComponent) |
Modifier and Type | Method and Description |
---|---|
Configuration |
JsonConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Constructor and Description |
---|
JsonConfiguration(LoggerContext loggerContext,
ConfigurationSource configSource) |
Modifier and Type | Method and Description |
---|---|
PropertiesConfiguration |
PropertiesConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
PropertiesConfigurationBuilder |
PropertiesConfigurationBuilder.setConfigurationSource(ConfigurationSource source) |
Constructor and Description |
---|
PropertiesConfiguration(LoggerContext loggerContext,
ConfigurationSource source,
Component root) |
Modifier and Type | Method and Description |
---|---|
Configuration |
XmlConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source)
Returns the Configuration.
|
Constructor and Description |
---|
XmlConfiguration(LoggerContext loggerContext,
ConfigurationSource configSource) |
Modifier and Type | Method and Description |
---|---|
Configuration |
YamlConfigurationFactory.getConfiguration(LoggerContext loggerContext,
ConfigurationSource source) |
Constructor and Description |
---|
YamlConfiguration(LoggerContext loggerContext,
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.
|
Constructor and Description |
---|
Source(ConfigurationSource source)
Constructs a Source from a ConfigurationSource.
|
Copyright © 1999-2023 The 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.