类 SpringBootConfigurationFactory
java.lang.Object
org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
org.apache.logging.log4j.core.config.ConfigurationFactory
org.springframework.boot.logging.log4j2.SpringBootConfigurationFactory
@Plugin(name="SpringBootConfigurationFactory",
category="ConfigurationFactory")
public class SpringBootConfigurationFactory
extends org.apache.logging.log4j.core.config.ConfigurationFactory
Spring Boot
ConfigurationFactory
that customizes Log4J2's default configuration
to:
- Prevent logger warnings from being printed when the application first starts.
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.- 从以下版本开始:
- 1.5.0
- 作者:
- Phillip Webb
-
字段概要
从类继承的字段 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, TEST_PREFIX
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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[]
从类继承的方法 org.apache.logging.log4j.core.config.ConfigurationFactory
authorizationProvider, getAuthorizationProvider, getConfiguration, getConfiguration, getDefaultPrefix, getInputFromString, getInstance, getTestPrefix, getVersion, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
从类继承的方法 org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory
newConfigurationBuilder, newConfigurationBuilder
-
构造器详细资料
-
SpringBootConfigurationFactory
public SpringBootConfigurationFactory()
-
-
方法详细资料
-
getSupportedTypes
- 指定者:
getSupportedTypes
在类中org.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) - 指定者:
getConfiguration
在类中org.apache.logging.log4j.core.config.ConfigurationFactory
-