Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-20 Thread André Warnier
Konstantin Kolinko wrote: 2010/4/20 André Warnier a...@ice-sa.com: I suggest a simple way whereby to tell Tomcat (optionally) just /not/ to rotate its logfiles itself, and to always write to a fixed filename. (an additional property in logging.properties ?) There exists under Linux the

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-20 Thread Konstantin Kolinko
2010/4/21 André Warnier a...@ice-sa.com: But could you indicate where exactly this has to be set in the standard vanilla Tomcat logging.properties file (or elsewhere) to achieve the not rotate aspect ? It is just another implementation of java.util.logging.Handler, like the ConsoleHandler that

Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread laredotornado
Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat to generate simply localhost.log for whatever day today

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Peter Crowther
Hmm. As the log files will alpha-sort by date, something like vim `ls ~/localhost.log* | tail -1` might do it. Beware - my shell script is rusty at best. - Peter On 19 April 2010 15:29, laredotornado laredotorn...@gmail.com wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Pid
On 19/04/2010 15:29, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat to

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Jon Brisbin
On Apr 19, 2010, at 3:42 PM, Pid wrote: On 19/04/2010 15:29, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example --

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread André Warnier
Pid wrote: On 19/04/2010 15:29, laredotornado wrote: Hi, I'm using Tomcat 6.0.26 on Mac 10.6.3. Currently, in my $CATALINA_HOME/logs directory, Tomcat produces a localhost*log file with the date in the file name for each day, for example -- localhost.2010-04-19. Is there a way to get Tomcat

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Mark Thomas
On 19/04/2010 22:32, André Warnier wrote: I disagree. The point raised by the OP above is one that bothers a lot of people. The lame bit is the way in which standard out-of-the-box Tomcat generates its logfiles, and their rotation, inflexibly. And yes, I know one can implement log4j and do

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread André Warnier
Mark Thomas wrote: On 19/04/2010 22:32, André Warnier wrote: I disagree. The point raised by the OP above is one that bothers a lot of people. The lame bit is the way in which standard out-of-the-box Tomcat generates its logfiles, and their rotation, inflexibly. And yes, I know one can

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Pid
On 19/04/2010 23:11, André Warnier wrote: Mark Thomas wrote: On 19/04/2010 22:32, André Warnier wrote: I disagree. Fair enough. The point raised by the OP above is one that bothers a lot of people. I don't like juli logging at all, but hitting tab a couple of keys isn't that traumatic.

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Konstantin Kolinko
2010/4/20 André Warnier a...@ice-sa.com: I suggest a simple way whereby to tell Tomcat (optionally) just /not/ to rotate its logfiles itself, and to always write to a fixed filename. (an additional property in logging.properties ?) There exists under Linux the logrotate utility, which is

Re: Way to generate a localhost.log instead of localhost-4-20-2010.log?

2010-04-19 Thread Terence M. Bandoian
Here's a Linux script to remove log files older than seven days: find /var/tomcat5/logs -daystart -mtime +7 -type f -exec rm '{}' \; Just in case anyone might find it useful. -Terence Bandoian - To unsubscribe, e-mail: