Setting up log4j is a bit more complex than the example you have provided. I suggest that you read this Log4j Short Manual. If you still need more then then post back and I (or someone else) can send you a short example. I don't have one here at the moment as I have just rebuilt the computer so I would need to spend the time to write one, so have a go first.
directory structure is E:\Apache Software Foundation\Tomcat 5.0\ - this is where tomcat is installed (form heron I will call this $TomcatHome) $TomcatHome\webapps\SCWCD\ - this is the webapp I am using (form heron I will call this $SCWCD) $SCWCD\WEB-INF\clases\au\com\mattwill\listeners & $SCWCD\WEB-INF\clases\au\com\mattwill\servlets is where the classes are web.xml in the normal place $SCWCD\WEB-INF\ (no suprises so far)
log4j.properties lives in $SCWCD\WEB-INF\
and the logfile produced is E:/Apache Software Foundation/Tomcat 5.0/logs/scwcd.log
Hope this helps
Joined: Mar 23, 2005
very very cool, Mat! It's now working. Thanks a lot!!!