Caldarale, Charles R wrote:
>
> You didn't bother to tell us what version of Tomcat you're using, but for
> 6.0.x try putting the log4j.xml file in Tomcat's lib directory.
Sorry, it is Tomcat 6.0.18, and I had log4j.xml present in the conf folder.
Once I moved it to lib, it started getting us
> From: bmelloni [mailto:bruno.mell...@chickasaw.net]
> Subject: default log4j.xml for apps
>
> But I have to have a central log4j.xml available with default logging
> configuration for all of the apps. How can I do this in Tomcat?
You didn't bother to tell us what version of Tomcat you're using
start by configuring $CATALINA_HOME/lib/log4j.properties e.g.
log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log