类 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:
    1. Prevent logger warnings from being printed when the application first starts.
    2. Disable its shutdown hook
    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 custom DefaultConfiguration is returned with the expectation that the system will later re-initialize Log4J2 with the correct configuration file.
    从以下版本开始:
    1.5.0
    • 字段概要

      • 从类继承的字段 org.apache.logging.log4j.core.config.ConfigurationFactory

        CATEGORY, CONFIGURATION_FACTORY_PROPERTY, CONFIGURATION_FILE_PROPERTY, DEFAULT_PREFIX, LOGGER, substitutor, TEST_PREFIX
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型方法说明
      org.apache.logging.log4j.core.config.ConfigurationgetConfiguration​(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, getInputFromString, getInstance, isActive, removeConfigurationFactory, resetConfigurationFactory, setConfigurationFactory
      • 从类继承的方法 org.apache.logging.log4j.core.config.builder.api.ConfigurationBuilderFactory

        newConfigurationBuilder, newConfigurationBuilder
    • 方法详细资料

      • 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