in log4j-jakarta-web/src/main/java/org/apache/logging/log4j/web/Log4jServletFilter.java [95:102]
public void destroy() {
if (this.servletContext == null || this.initializer == null) {
throw new IllegalStateException("Filter destroyed before it was initialized.");
}
LOGGER.debug("Log4jServletFilter destroyed.");
this.initializer.setLoggerContext(); // the application is just now starting to shut down
}