• Andy Wilkinson's avatar
    Prevent restarts from switching off Log4J2-based logging · aaae4aa3
    Andy Wilkinson authored
    During a restart, the Restarter runs all registered shutdown hooks. This
    breaks Log4J2 as it leaves it in a shutdown state that leaves logging
    switched off such that no output it produced when the application starts
    up again.
    
    This commit introduces a new RestartListener abstraction.
    RestartListeners are notified prior to the application being restarted.
    A Log4J2-specific implementation is provided that prepares Log4J2 for
    restart by removing any shutdown callbacks from its shutdown callback
    registry. This prevents the restart from shutting down Log4J2, ensuring
    that it still functions when the application restarts.
    
    Closes gh-4279
    aaae4aa3
Name
Last commit
Last update
.mvn Loading commit data...
docs Loading commit data...
eclipse Loading commit data...
spring-boot Loading commit data...
spring-boot-actuator Loading commit data...
spring-boot-actuator-docs Loading commit data...
spring-boot-autoconfigure Loading commit data...
spring-boot-cli Loading commit data...
spring-boot-dependencies Loading commit data...
spring-boot-deployment-tests Loading commit data...
spring-boot-devtools Loading commit data...
spring-boot-docs Loading commit data...
spring-boot-full-build Loading commit data...
spring-boot-integration-tests Loading commit data...
spring-boot-parent Loading commit data...
spring-boot-samples Loading commit data...
spring-boot-starters Loading commit data...
spring-boot-tools Loading commit data...
.gitignore Loading commit data...
.settings-template.xml Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.adoc Loading commit data...
LICENSE.txt Loading commit data...
README.adoc Loading commit data...
mvnw Loading commit data...
mvnw.cmd Loading commit data...
pom.xml Loading commit data...