Hi again, I have tried to setup a file appender now without success. When I restart Tomcat it is clear that it does not wish to create the file I am specifying. I am wondering if Tomcat really is initialising the logging subsystem from placing log4j.properties in common/classes. I could be completely wrong and have missed something?
log4j.rootLogger=debug, stdout, R log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=d:/jakarta-tomcat-5.5.4/logs/catalina.log log4j.appender.R.MaxFileSize=100KB log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n log4j.logger.org.apache.catalina=DEBUG, R Cheers! A. > -----Original Message----- > From: Allistair Crossley > Sent: 11 November 2004 15:35 > To: Tomcat Users List > Subject: RE: Tomcat 5.5.4, Logging and the death of my friend > localhost_log > > > Hey Yoav, > > tomcat/common/classes/log4j.properties as follows > > log4j.rootLogger=DEBUG, A1 > log4j.appender.A1=org.apache.log4j.ConsoleAppender > log4j.appender.A1.layout=org.apache.log4j.PatternLayout > log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n > log4j.logger.org.apache.catalina=DEBUG > > This was pretty much just copied from the link on the Tomcat > Logging FAQ except I changed the log level and also > > log4j.logger.org.apache > > to > > log4j.logger.org.apache.catalina > > I will try to add a file based appender... > > Allistair. > > > -----Original Message----- > > From: Shapira, Yoav [mailto:[EMAIL PROTECTED] > > Sent: 11 November 2004 15:31 > > To: Tomcat Users List > > Subject: RE: Tomcat 5.5.4, Logging and the death of my friend > > localhost_log > > > > > > > > Hi, > > > > >I have tried what I believed to be how to do this, e.g I > > placed a basic > > >console appender log4j.properties file into > tomcat/common/classes and > > >popped log4j1.2.8 into the common/lib. No logging though. > > > > Where did you attach the console appender? To the root > > logger or on of > > your own packaged? Try creating an appender (probably a > FileAppender) > > and associated it with the org.apache logger. If you want > DEBUG-level > > logging, set its level DEBUG. > > > > Enjoy Halo 2 ;) > > > > Yoav > > > > > > > > This e-mail, including any attachments, is a confidential > > business communication, and may contain information that is > > confidential, proprietary and/or privileged. This e-mail is > > intended only for the individual(s) to whom it is addressed, > > and may not be saved, copied, printed, disclosed or used by > > anyone else. If you are not the(an) intended recipient, > > please immediately delete this e-mail from your computer > > system and notify the sender. Thank you. > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > <FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> > ------------------------------------------------------- > QAS Ltd. > Developers of QuickAddress Software > <a href="http://www.qas.com">www.qas.com</a> > Registered in England: No 2582055 > Registered in Australia: No 082 851 474 > ------------------------------------------------------- > </FONT> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]