@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.
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.
Since:
1.5.0
Author:
Phillip Webb
Field Summary
Fields inherited from class org.apache.logging.log4j.core.config.ConfigurationFactory