Question to post to the list
Hi, I am hoping that someone may be able to help me. I want to write my tomcat logs to a different directory. I thought i could change log4j.appender.R.File=$\{catalina.home\}/logs/tomcat.log to something like log4j.appender.ROLLINGFILE.File=$\{logs\}/stdout.log in my C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Dekho\WEB-INF\classes\resources logging.properties file but had no luck with this. Does anyone have any ideas Fiona Duncan Level 1, 414 Kent St Sydney NSW 2000 http://www.esriaustralia.com.au Freecall 1800 447 111 Putting knowledge into place(tm) This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient please notify the sender by return email, do not use or disclose the contents and delete the message and any attachments from your system. The contents of this message does not necessarily represent the opinions of ESRI Australia. ESRI Australia does not accept any responsibility for loss or damage that may result from reliance on, or the use of, the information contained in this e-mail and any attachments. **Please consider the environment before printing this email**
Re: Question to post to the list
is the environment-variable $logs specified? rgds gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question to post to the list
On 09/06/2010 07:56, Fiona Duncan wrote: Hi, I am hoping that someone may be able to help me. I want to write my tomcat logs to a different directory. I thought i could change log4j.appender.R.File=$\{catalina.home\}/logs/tomcat.log to something like log4j.appender.ROLLINGFILE.File=$\{logs\}/stdout.log in my C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\Dekho\WEB-INF\classes\resources logging.properties file but had no luck with this. Does anyone have any ideas So you're using Tomcat 6.0.something, and Windows something, and a JVM version +1.5 of some sort. (Hints for next time) You can define CATALINA_HOME (Tomcat installation) and CATALINA_BASE (apps, logs config) to be in separate locations. This is often used to run multiple instances from the same binaries, but also helps moves logs out of Programs Files on Windows and makes upgrades incredibly easy. Examine RUNNING.txt in the Tomcat installation directory and look for Advanced Configuration. p Level 1, 414 Kent St Sydney NSW 2000 http://www.esriaustralia.com.au Freecall 1800 447 111 Putting knowledge into place(tm) This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient please notify the sender by return email, do not use or disclose the contents and delete the message and any attachments from your system. The contents of this message does not necessarily represent the opinions of ESRI Australia. ESRI Australia does not accept any responsibility for loss or damage that may result from reliance on, or the use of, the information contained in this e-mail and any attachments. **Please consider the environment before printing this email** signature.asc Description: OpenPGP digital signature
Re: Question to post to the list
Pid, I believe the problem here is that Fiona tried to use File=$\{logs\}/stdout.log However, this will only work if an environment-variable logs is defined - which is IMHO no default configuration. Cheers Gregor -- just because you're paranoid, don't mean they're not after you... gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2 gpgp-key available @ http://pgpkeys.pca.dfn.de:11371 @ http://pgp.mit.edu:11371/ skype:rc46fi - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Question to post to the list
On 09/06/2010 11:08, Gregor Schneider wrote: Pid, I believe the problem here is that Fiona tried to use File=$\{logs\}/stdout.log However, this will only work if an environment-variable logs is defined - which is IMHO no default configuration. Yep. You seemed to have that angle covered - I was suggesting an alternative approach. I forgot to add the final statement though. (I plead pre-coffee). log4j.appender.R.File=$\{catalina.base\}/logs/tomcat.log p signature.asc Description: OpenPGP digital signature
Re: Question to post to the list
On 09.06.2010 12:33, Pid wrote: On 09/06/2010 11:08, Gregor Schneider wrote: Pid, I believe the problem here is that Fiona tried to use File=$\{logs\}/stdout.log However, this will only work if an environment-variable logs is defined - which is IMHO no default configuration. Yep. You seemed to have that angle covered - I was suggesting an alternative approach. I forgot to add the final statement though. (I plead pre-coffee). log4j.appender.R.File=$\{catalina.base\}/logs/tomcat.log ... plus if the line is part of a log4j.properties file, I never saw backslashes in those. Works without them. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Question to post to the list
From: Pid [mailto:p...@pidster.com] Subject: Re: Question to post to the list I forgot to add the final statement though. (I plead pre-coffee). log4j.appender.R.File=$\{catalina.base\}/logs/tomcat.log It's also not clear what the OP's expectations are; she speaks of Tomcat logs, then presents information about logging inside one particular webapp - which has nothing to do with Tomcat's logging. So what's the real problem? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.