atom feed23 messages in org.apache.tomcat.devRe: AccessLogValve enhancement
FromSent OnAttachments
Mark ClaassenFeb 15, 2012 1:23 pm 
Mark ThomasFeb 15, 2012 1:32 pm 
Mark ClaassenFeb 15, 2012 1:55 pm 
Konstantin KolinkoFeb 15, 2012 2:06 pm 
Mark ClaassenFeb 16, 2012 7:16 am 
Mark ClaassenFeb 16, 2012 1:05 pm.zip
Konstantin KolinkoFeb 16, 2012 1:11 pm 
Mark ClaassenFeb 16, 2012 1:44 pm 
Filip Hanik - Dev ListsFeb 17, 2012 7:22 am 
Francis GaliegueFeb 17, 2012 7:54 am 
Filip Hanik - Dev ListsFeb 17, 2012 8:04 am 
Rainer JungFeb 17, 2012 8:13 am 
Christopher SchultzFeb 19, 2012 9:20 am 
Mark ThomasFeb 19, 2012 9:49 am 
Mark ClaassenFeb 19, 2012 6:53 pm 
Christopher SchultzFeb 21, 2012 8:37 am 
Mark ClaassenFeb 24, 2012 8:49 am 
Mark ClaassenMar 27, 2012 6:29 am 
Konstantin KolinkoMar 27, 2012 6:46 am 
Mark ClaassenMar 27, 2012 8:16 am 
Mark ClaassenMar 29, 2012 9:51 am 
Konstantin KolinkoMar 29, 2012 1:43 pm 
Mark ClaassenApr 11, 2012 11:09 am 
Subject:Re: AccessLogValve enhancement
From:Konstantin Kolinko (knst@gmail.com)
Date:Mar 29, 2012 1:43:37 pm
List:org.apache.tomcat.dev

2012/3/29 Mark Claassen <mac@donnell.com>:

After thinking about this some more, and deliberating on the subtle issues that
were coming up, I decided to reduce the scope of my enhancement.  I still like the idea of using a standard logger for this logging,
but for now I thought I would focus more on my specific problem.  I wrote more about this in the issue. https://issues.apache.org/bugzilla/show_bug.cgi?id=52688

Is this something that could be adopted in a future 7.0 release?

To delete or otherwise rotate (move, compress, e-mail, etc.) old files - I think I would write a <Listener>,

or set up a shell script in cron.

When logger starts to write a new file it has to do so quickly, because it happens in a synchronized block.

Deleting is possible, because it is a quick operation as well. Though the tricky part is to find out what to delete. The files are named by date and they are not created unless necessary. The date format is configurable. E.g. it is possible to use it to generate different directories for different dates.

IIRC JRE's java.util.logging.FileHandler can be configured to keep n old files, but it uses different naming scheme.