| From | Sent On | Attachments |
|---|---|---|
| Mark Claassen | Feb 15, 2012 1:23 pm | |
| Mark Thomas | Feb 15, 2012 1:32 pm | |
| Mark Claassen | Feb 15, 2012 1:55 pm | |
| Konstantin Kolinko | Feb 15, 2012 2:06 pm | |
| Mark Claassen | Feb 16, 2012 7:16 am | |
| Mark Claassen | Feb 16, 2012 1:05 pm | .zip |
| Konstantin Kolinko | Feb 16, 2012 1:11 pm | |
| Mark Claassen | Feb 16, 2012 1:44 pm | |
| Filip Hanik - Dev Lists | Feb 17, 2012 7:22 am | |
| Francis Galiegue | Feb 17, 2012 7:54 am | |
| Filip Hanik - Dev Lists | Feb 17, 2012 8:04 am | |
| Rainer Jung | Feb 17, 2012 8:13 am | |
| Christopher Schultz | Feb 19, 2012 9:20 am | |
| Mark Thomas | Feb 19, 2012 9:49 am | |
| Mark Claassen | Feb 19, 2012 6:53 pm | |
| Christopher Schultz | Feb 21, 2012 8:37 am | |
| Mark Claassen | Feb 24, 2012 8:49 am | |
| Mark Claassen | Mar 27, 2012 6:29 am | |
| Konstantin Kolinko | Mar 27, 2012 6:46 am | |
| Mark Claassen | Mar 27, 2012 8:16 am | |
| Mark Claassen | Mar 29, 2012 9:51 am | |
| Konstantin Kolinko | Mar 29, 2012 1:43 pm | |
| Mark Claassen | Apr 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.
Best regards, Konstantin Kolinko






.zip