Best Place to place log files

2011-02-04 Thread Umesh Awasthi
Hi All, I am working on a webapplication and it is going to use looging in good way for its import export process.so we need to store log files at some place so that when ever some needs to consult logfiles can do that. One thing we can do is to create afolder in the webapps and place alll such r

Re: Best Place to place log files

2011-02-05 Thread Christian Grobmeier
Hi i think everybody does it in a different way, but the $tomcat/webapps dir is probably not the best for the mentioned reasons. You could put it in $tomcat/logs/yourwebapp or even in /var/log/webapp Later case needs more rights. Cheers Christian On Sat, Feb 5, 2011 at 8:35 AM, Umesh Awasthi w

Re: Best Place to place log files

2011-02-05 Thread Umesh Awasthi
Thats seems good and i guess for virtual hosting/dedicated hosting that will not create a big issue for rights and permissions ,atleast i hope so On Sat, Feb 5, 2011 at 2:05 PM, Christian Grobmeier wrote: > Hi > > i think everybody does it in a different way, but the $tomcat/webapps > dir is prob

Re: Best Place to place log files

2011-02-05 Thread Tim Watts
I would say that where you place the logs is not as important as how that location gets configured for the webapp. Two things to AVOID are 1) requiring the app to be reconfigured whenever a new war is deployed and 2) hard coding the location of the logs and/or the log4j configuration. You can usua

Re: Best Place to place log files

2011-02-05 Thread Thorbjørn Ravn Andersen
Den 05/02/11 08.35, Umesh Awasthi skrev: my question is in such case what is the best place to store your application related log files? For running inside GlassFish I found that the simplest way was to channel the log events to java.util.logging which GlassFish both handles and provide a web i