@Plugin(name="OpenmrsConfigurationFactory",
category="ConfigurationFactory")
public class OpenmrsConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
ConfigurationFactory
to handle OpenMRS's logging configuration.
Functionality provided by this ConfigurationFactory
:
Modifier and Type | Field and Description |
---|---|
static String[] |
EXTENSIONS |
static String[] |
SUFFIXES |
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 and Description |
---|
OpenmrsConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
protected static void |
doOpenmrsCustomisations(org.apache.logging.log4j.core.config.AbstractConfiguration configuration) |
org.apache.logging.log4j.core.config.Configuration |
getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
org.apache.logging.log4j.core.config.ConfigurationSource source) |
org.apache.logging.log4j.core.config.Configuration |
getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
String name,
URI configLocation) |
List<File> |
getConfigurationFiles() |
protected String[] |
getSupportedTypes() |
authorizationProvider, getAuthorizationProvider, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getTestPrefix, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
public static final String[] SUFFIXES
public static final String[] EXTENSIONS
public org.apache.logging.log4j.core.config.Configuration getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext, String name, URI configLocation)
getConfiguration
in class org.apache.logging.log4j.core.config.ConfigurationFactory
public org.apache.logging.log4j.core.config.Configuration getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext, org.apache.logging.log4j.core.config.ConfigurationSource source)
getConfiguration
in class org.apache.logging.log4j.core.config.ConfigurationFactory
protected String[] getSupportedTypes()
getSupportedTypes
in class org.apache.logging.log4j.core.config.ConfigurationFactory
protected static void doOpenmrsCustomisations(org.apache.logging.log4j.core.config.AbstractConfiguration configuration)
Copyright © 2024 OpenMRS Inc.. All rights reserved.