How to setup log4j under tomcat
From Foochal
Contents |
[edit]
Configuration
Tomcat uses commons-logging framework, which in turn can be configured to use log4j (not tested)
[edit]
Option 1
- Make sure that commons-logging jar is in tomcat/common/lib, and NOT in WEB-INF/lib
- Put your log4j.properties in tomcat/common/classes, and NOT in WEB-INF/classes
[edit]
Option 2
Other supported configuration is user space configuration which will not conflict with other applications (tested)
- commons-logging jar in tomcat/common/lib
- log4j.jar in WEB-INF/lib
- log4j.properties in WEB-INF/classes
[edit]

