Class PropertiesConfigurationFactory
java.lang.Object
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.apache.logging.log4j.core.config.properties.PropertiesConfigurationFactory
@Plugin(name="PropertiesConfigurationFactory",
category="ConfigurationFactory")
public class PropertiesConfigurationFactory
extends ConfigurationFactory
Creates a PropertiesConfiguration from a properties file.
- Since:
- 2.4
-
Field Summary
Fields inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
AUTHORIZATION_PROVIDER, CATEGORY, CONFIGURATION_FACTORY_PROPERTY, CONFIGURATION_FILE_PROPERTY, DEFAULT_PREFIX, LOG4J1_CONFIGURATION_FILE_PROPERTY, LOG4J1_EXPERIMENTAL, LOG4J1_VERSION, LOG4J2_VERSION, LOGGER, substitutor, TEST_PREFIX
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration
(LoggerContext loggerContext, ConfigurationSource source) protected String[]
Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
authorizationProvider, getAuthorizationProvider, getConfiguration, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getTestPrefix, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
Methods inherited from class org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
newConfigurationBuilder, newConfigurationBuilder
-
Constructor Details
-
PropertiesConfigurationFactory
public PropertiesConfigurationFactory()
-
-
Method Details
-
getSupportedTypes
- Specified by:
getSupportedTypes
in classConfigurationFactory
-
getConfiguration
public PropertiesConfiguration getConfiguration(LoggerContext loggerContext, ConfigurationSource source) - Specified by:
getConfiguration
in classConfigurationFactory
-