log4j initialization does not seem to happen when Tomcat service is started

2024-03-13 Thread Piers Uso Walter
Hi all, I have a small web app that runs in Tomcat 9 and uses log4j 2 for logging. This works in one case and does not work in another case: Case 1: When I deploy the war file to Tomcat (copying the war file to the Tomcat webapps folder), everything works as expected. The log file is created

Re: log4j initialization does not seem to happen when Tomcat service is started

2024-03-13 Thread Piotr P. Karwasz
Hi Piers, On Wed, 13 Mar 2024 at 22:29, Piers Uso Walter wrote: > 2024-03-13T19:49:02.609143Z Catalina-utility-1 INFO > Log4jServletContextListener triggered a Log4j context initialization. > > Case 2: > However, if I stop and restart the Tomcat service (with the war file having > been