| 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: | AccessLogValve enhancement | |
|---|---|---|
| From: | Mark Claassen (mark...@gmail.com) | |
| Date: | Feb 15, 2012 1:23:31 pm | |
| List: | org.apache.tomcat.dev | |
We would like to use the flexibility of the standard logging mechanism for the AccessLogValue. I could find no way to do this. Looking at the AccessLogValve code in Tomcat 7, it seems it would really would not be hard to add.
There already is standard logger in the AccessLogValve class, which is where error in the logger itself get routed. private static final Log log = LogFactory.getLog(AccessLogValve.class);
This still makes a lot of sense, and should probably be kept separate. What I would propose is that a new attribute be added, called maybe "systemLoggerName". If this is set, then the logger by that name would be used instead of the current hard-coded file logger. (Errors would still go to the statically defined Logger.)
I already tried this with the XML listed below and a slightly modified AccessLogValve and it seems to work perfectly. If this is something that would be considered a positive change, I would be happy to submit a patch and propose some documentation updates.
I am not exactly sure how this all works, especially since this is more of an enhancement rather than a bug fix. I sure there are guidelines for when in a release cycle these types of changes are appropriate.
Mark
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="log" prefix="localhost_access_log." systemLoggerName="mylogger" pattern="common" resolveHosts="false"/>






.zip