To setup log4j, here's what I did. Copy the log4j jar file to WEB-INF/lib. Put it in ${catalina.home}/lib if you want all webapps to be able to see this file.
Create a log4j.properties. Initially this file was in WEB-INF/classes/log4j.properties. Now I have the file in WEB-INF/lib/myjarfile.jar!log4j.properties (that is, at the root level of the jar file). That's it, if I remember correctly. When the properties file specifies a relative filename, it appears to be relative to ${catalina.home}, so specify for example "logs/myfile.log". --- On Mon, 11/24/08, dOE <[EMAIL PROTECTED]> wrote: > From: dOE <[EMAIL PROTECTED]> > Subject: Setup Logging for Tomcat 6 > To: "Tomcat User-List" <users@tomcat.apache.org> > Date: Monday, November 24, 2008, 8:25 AM > I have downloaded "Apache-log4j-1.2.15.zip" from > http://tomcat.apache.org/tomcat-6.0-doc/logging.html, and > began to following > some of the steps, and then I am left clueless on what to > do following the > creation of the log4j.properties file, and copying > "log4j-1.2.15.jar" in > /tomca/lib. Then it asks to "Place > output/extras/tomcat-juli-adapters.jarin > $CATALINA_HOME/lib." I don't > know where "output/extras" is? > > Any further guidance in this would be much MUCH > appreciated. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]