类 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 BootConfigurationFactory
that prevents logger warnings from being printed when the application first starts. This factory is ordered last and is triggered by alog4j2.springboot
classpath resource (which is bundled in this jar). If theLog4J2LoggingSystem
is active, aDefaultConfiguration
is returned with the expectation that the system will later re-initialize Log4J2 with the correct configuration file.- 从以下版本开始:
- 1.5.0
构造器概要
构造器 构造器 说明 SpringBootConfigurationFactory()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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()
从类继承的方法 org.apache.logging.log4j.core.config.ConfigurationFactory
getConfiguration, getConfiguration, getInputFromResource, getInputFromString, getInputFromUri, getInstance, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
构造器详细资料
SpringBootConfigurationFactory
public SpringBootConfigurationFactory()
方法详细资料
getSupportedTypes
protected String[] 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