@Plugin(name="SpringBootConfigurationFactory",
category="ConfigurationFactory")
public class SpringBootConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
ConfigurationFactory
that prevents logger warnings from being
printed when the application first starts. This factory is ordered last and is
triggered by a log4j2.springboot
classpath resource (which is bundled in this
jar). If the Log4J2LoggingSystem
is active, a DefaultConfiguration
is
returned with the expectation that the system will later re-initialize Log4J2 with the
correct configuration file.Constructor and Description |
---|
SpringBootConfigurationFactory() |
Modifier and Type | Method and Description |
---|---|
org.apache.logging.log4j.core.config.Configuration |
getConfiguration(org.apache.logging.log4j.core.LoggerContext loggerContext,
org.apache.logging.log4j.core.config.ConfigurationSource source) |
protected String[] |
getSupportedTypes() |
getConfiguration, getConfiguration, getInputFromResource, getInputFromString, getInputFromUri, getInstance, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
protected String[] getSupportedTypes()
getSupportedTypes
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
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.