Hi Piers, On Sun, 31 Mar 2024 at 22:37, Piers Uso Walter <piers.wal...@ilink.de> wrote: > > Thad, > > > Thanks so much. This looks exactly what I want to do. > But somehow I never got your code to work. > > ... > > I made these changes to your code: > > 1. > LogListener is now a subclass of Log4jServletContextListener, instead of just > implementing ServletContextListener. > So I’m only declaring a single listener in web.xml. > > 2. > I’m not using the servlet init parameter > Log4jWebSupport.LOG4J_CONFIG_LOCATION to set the config file location. > Instead, I’m initializing a log4j Configurator from the file.
Consider also setting the servlet init parameter `isLog4jAutoInitializationDisabled` to `true` to disable the servlet container initializer. Piotr --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org