cseewald commented on issue #1782: URL: https://github.com/apache/logging-log4j2/issues/1782#issuecomment-1759473288
> @cseewald, > > Did you test with a `Log4jServletContextListener` explicitly defined in your `web.xml`? No, just using the `Log4jServletContainerInitializer`. In my "fixed/workaround" configuration, I simply disable `Log4jServletContainerInitializer` via `isLog4jAutoInitializationDisabled` and simply declare a `Log4jServletContextListener` as the first listener in `web.xml` and then the shutdown of log4j happens last. As you already established given the constraints of the Servlet API it is impossible to do this with `Log4jServletContainerInitializer`. So I am not entirely sure what your changes are actually trying to fix since when `Log4jServletContainerInitializer` is enabled only a single `Log4jServletContextListener` is added to the servlet container. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
