Package org.apache.log4j.config
Class PropertiesConfigurationFactory
java.lang.Object
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.apache.log4j.config.PropertiesConfigurationFactory
@Plugin(name="Log4j1PropertiesConfigurationFactory",
category="ConfigurationFactory")
public class PropertiesConfigurationFactory
extends ConfigurationFactory
Configures Log4j from a log4j 1 format properties file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
File name prefix for standard configurations.(package private) static final String
protected static final String
File name prefix for test configurations.Fields inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
AUTHORIZATION_PROVIDER, CATEGORY, CONFIGURATION_FACTORY_PROPERTY, CONFIGURATION_FILE_PROPERTY, LOG4J1_CONFIGURATION_FILE_PROPERTY, LOG4J1_EXPERIMENTAL, LOG4J1_VERSION, LOG4J2_VERSION, LOGGER, substitutor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguration
(LoggerContext loggerContext, ConfigurationSource source) protected String
protected String[]
protected String
protected String
Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
authorizationProvider, getAuthorizationProvider, getConfiguration, getConfiguration, getInputFromString, getInstance, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
Methods inherited from class org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
newConfigurationBuilder, newConfigurationBuilder
-
Field Details
-
FILE_EXTENSION
- See Also:
-
TEST_PREFIX
File name prefix for test configurations.- See Also:
-
DEFAULT_PREFIX
File name prefix for standard configurations.- See Also:
-
-
Constructor Details
-
PropertiesConfigurationFactory
public PropertiesConfigurationFactory()
-
-
Method Details
-
getSupportedTypes
- Specified by:
getSupportedTypes
in classConfigurationFactory
-
getConfiguration
- Specified by:
getConfiguration
in classConfigurationFactory
-
getTestPrefix
- Overrides:
getTestPrefix
in classConfigurationFactory
-
getDefaultPrefix
- Overrides:
getDefaultPrefix
in classConfigurationFactory
-
getVersion
- Overrides:
getVersion
in classConfigurationFactory
-