Package org.apache.log4j.xml
Class XmlConfigurationFactory
java.lang.Object
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.apache.log4j.xml.XmlConfigurationFactory
@Plugin(name="Log4j1XmlConfigurationFactory",
category="ConfigurationFactory")
public class XmlConfigurationFactory
extends ConfigurationFactory
Constructs a Configuration usable in Log4j 2 from a Log4j 1 configuration file.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String
File name prefix for standard configurations.static final String
private static final Logger
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, 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:
-
LOGGER
-
TEST_PREFIX
File name prefix for test configurations.- See Also:
-
DEFAULT_PREFIX
File name prefix for standard configurations.- See Also:
-
-
Constructor Details
-
XmlConfigurationFactory
public XmlConfigurationFactory()
-
-
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
-