Re: Configuring Tomcat to use log4j2 - not working, probably a trivial error in log4j2.xml
Christopher Schultz <[email protected]>
| Newsgroups | gmane.comp.jakarta.log4j.user |
|---|---|
| Message-ID | <[email protected]> |
Bruno, On 1/6/22 17:58, Bruno Melloni wrote: > Success! > > The issue turned out to be that placing the log4j2 jars and > log4j2-tomcat.xml in the tomcat/lib folder no longer works. > > The solution: > > * Followed the official instructions to the letter > (https://logging.apache.org/log4j/2.x/log4j-appserver/index.html) > * Used this canned log4j2-tomcat.xml file that replicates the original > tomcat files but using log4j > (https://gist.github.com/bmaupin/475a0cd6e8b374d876f5085846761fb6) > * Could not edit setenv.sh in Windows (does not exist), so instead I > added the following (knowingly ugly and inflexible code - for now) > to catalina.bat: On Windows, use SETENV.BAT. -chris