Hi Fred, it works nicely, thanks! regards jan
>I believe you can put the log4j.properties into the ><approot>/WEB-INF/classes and the log4j-<version>.jar and >commons-logging.jar into the related WEB-INF/lib > >see http://tomcat.apache.org/tomcat-5.5-doc/logging.html > >I tested with the following sample properties for test = DEBUG will generate >lot of log. > >log4j.appender.myapp1.File=${catalina.base}/logs/myapp1.log >log4j.appender.myapp1=org.apache.log4j.RollingFileAppender >log4j.appender.myapp1.MaxFileSize=10MB >log4j.appender.myapp1.MaxBackupIndex=10 >log4j.appender.myapp1.layout=org.apache.log4j.PatternLayout ># Print the date in ISO 8601 format >log4j.appender.myapp1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n >log4j.logger.org.apache=DEBUG, myapp1 > >It would be interesting to know if there is a way to get this to work >without copying the jars into the lib dir and also what a typical >log4j.properties should be to be helpful in a production environment. > >Regards - Fred