*TLDR Question*: Has Tomcat 10 dropped support for using log4j2 as its
default logger?
Details:
I am wondering because after easily a decade of using log4j with
Tomcat... it is now virtually impossible to find instructions (_that
actually work_) for how to configure Tomcat 10 to use *Apache Log4j* as
its default logger. Since both are Tomcat projects, the only explanation
I could come up with is that maybe Apache Log4j is considered a dead
project by Apache even if not announced as so.
And even though I think I figured out a configuration that appears to
work, when I call shutdown.bat (and in a few other scenarios) I get the
error:
*class org.apache.logging.log4j.jul.LogManager cannot be cast to class
java.util.logging.Handler (org.apache.logging.log4j.jul.LogManager is in
unnamed module of loader 'app'; java.util.logging.Handler is in module
java.logging of loader 'bootstrap')*
I am using Java 17, Tomcat 10.1.7 and log4j 2.20.0.