background Updated various plug-in versions with system replacement While checking the operation, notice that the log at the time of system shutdown is not output.
Constitution java9、Tomcat9、logback+slf4j、Springframework
Factors of occurrence Change logback version from 1.0.13 to 1.2.3.
Location of occurrence The listener class that implemented javax.servlet.ServletContextListener # contextDestroyed was logging when the system was shut down.
Action 1 logback context outage Added context stop according to logback site https://logback.qos.ch/manual/configuration_ja.html#stopContext
However, this alone does not solve the problem.
Action 2 Add logbackDisableServletContainerInitializer to web.xml There was an answer on the English page, although it was not on the Japanese translation page https://logback.qos.ch/manual/configuration.html#webShutdownHook
After adding the setting of Action 2, the log is output safely.
Recommended Posts