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
Fields Modifier and Type Field Description protected static String
DEFAULT_PREFIX
File name prefix for standard configurations.protected static String
TEST_PREFIX
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 Constructor Description XmlConfigurationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Configuration
getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
protected String
getDefaultPrefix()
protected String[]
getSupportedTypes()
protected String
getTestPrefix()
protected String
getVersion()
-
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 Detail
-
TEST_PREFIX
protected static final String TEST_PREFIX
File name prefix for test configurations.- See Also:
- Constant Field Values
-
DEFAULT_PREFIX
protected static final String DEFAULT_PREFIX
File name prefix for standard configurations.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSupportedTypes
protected String[] getSupportedTypes()
- Specified by:
getSupportedTypes
in classConfigurationFactory
-
getConfiguration
public Configuration getConfiguration(LoggerContext loggerContext, ConfigurationSource source)
- Specified by:
getConfiguration
in classConfigurationFactory
-
getTestPrefix
protected String getTestPrefix()
- Overrides:
getTestPrefix
in classConfigurationFactory
-
getDefaultPrefix
protected String getDefaultPrefix()
- Overrides:
getDefaultPrefix
in classConfigurationFactory
-
getVersion
protected String getVersion()
- Overrides:
getVersion
in classConfigurationFactory
-
-