Package org.nuxeo.common.test.logging
Class NuxeoConfigurationFactory
java.lang.Object
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.nuxeo.common.test.logging.NuxeoConfigurationFactory
@Plugin(name="NuxeoConfigurationFactory",
category="ConfigurationFactory")
public class NuxeoConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
This
ConfigurationFactory
provides a common log configuration for tests.
The feature logs some debug information with the StatusLogger
that can be enabled with the system property:
log4j2.debug = true
- Since:
- 2025.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String[]
Valid file extensions for XML files.protected static final String
File name prefix for common test configuration.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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.logging.log4j.core.config.Configuration
getConfiguration
(org.apache.logging.log4j.core.LoggerContext loggerContext, org.apache.logging.log4j.core.config.ConfigurationSource source) protected String[]
protected String
Methods inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory
authorizationProvider, getAuthorizationProvider, getConfiguration, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
Methods inherited from class org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
newConfigurationBuilder, newConfigurationBuilder
-
Field Details
-
SUFFIXES
Valid file extensions for XML files. -
TEST_PREFIX
File name prefix for common test configuration.- See Also:
-
-
Constructor Details
-
NuxeoConfigurationFactory
public NuxeoConfigurationFactory()
-
-
Method Details
-
getSupportedTypes
- Specified by:
getSupportedTypes
in classorg.apache.logging.log4j.core.config.ConfigurationFactory
-
getTestPrefix
- Overrides:
getTestPrefix
in classorg.apache.logging.log4j.core.config.ConfigurationFactory
-
getConfiguration
public org.apache.logging.log4j.core.config.Configuration getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext, org.apache.logging.log4j.core.config.ConfigurationSource source) - Specified by:
getConfiguration
in classorg.apache.logging.log4j.core.config.ConfigurationFactory
-