You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by "Tom E. Cole" <tc...@lamatek.com> on 2005/11/02 22:12:37 UTC
New Valve Development
I have developed a new Valve (which I call the DBAccessLogValve). It is
similar to the AccessLogValve, other than it logs values to a database
table rather than writing it to a log file. Many of the configuration
options are exactly the same as the standard AccessLogValve, with three
major exceptions:
1. It can be configured to use DBCP or the user can provide
connection information
2. In addition to setting up a comma separated list of values to
log, they provide a comma-separated list of column names that
correspond.
3. The user can configure what file types they want logged (for
example only .htm and .jsp files).
It has javadocs and is bundled in a single .jar which currently has to
be dumped in the %TOMCAT_HOME%/server/lib directory.
Someone on the Java Forums recommended contributing it to the Tomcat
project, but I'm not sure how to do that. If this is of interest or
someone knows how to contribute this, the information would be greatly
appreciated.
Tom Cole
LAMATEK, Inc.
(856) 599-6000 ext. 119
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: New Valve Development
Posted by Mark Thomas <ma...@apache.org>.
Tom E. Cole wrote:
> I have developed a new Valve (which I call the DBAccessLogValve). It is
> similar to the AccessLogValve, other than it logs values to a database
> table rather than writing it to a log file. Many of the configuration
> options are exactly the same as the standard AccessLogValve, with three
> major exceptions:
>
> 1. It can be configured to use DBCP or the user can provide
> connection information
> 2. In addition to setting up a comma separated list of values to
> log, they provide a comma-separated list of column names that
> correspond.
> 3. The user can configure what file types they want logged (for
> example only .htm and .jsp files).
>
> It has javadocs and is bundled in a single .jar which currently has to
> be dumped in the %TOMCAT_HOME%/server/lib directory.
>
> Someone on the Java Forums recommended contributing it to the Tomcat
> project, but I'm not sure how to do that. If this is of interest or
> someone knows how to contribute this, the information would be greatly
> appreciated.
Create a Bugzilla enhancement request and attach your code (as an
attachment rather than pasting into the comment field) and let us have
a look at it.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
Re: New Valve Development
Posted by Yoav Shapira <yo...@apache.org>.
Tom,
You have emailed the right list. Thank you for your contribution, which I'm
sure you find useful.
I am biased against adding any more Valves to Tomcat at the moment, because I
would actually like to do away with the Valve mechanism altogether in favor of
the standards-compliant and portable javax.servlet.Filter approach. I know
Valves are faster in general, but still, it seems like an over-engineered bit
of Tomcat that I'd like to see go away in the long run.
Accordingly, I don't want to put this into Tomcat proper at this time.
Instead, I'd love to see it in Filter form instead of Valve form: that would be
awesome.
Thanks,
Yoav
--- "Tom E. Cole" <tc...@lamatek.com> wrote:
> I have developed a new Valve (which I call the DBAccessLogValve). It is
> similar to the AccessLogValve, other than it logs values to a database
> table rather than writing it to a log file. Many of the configuration
> options are exactly the same as the standard AccessLogValve, with three
> major exceptions:
>
> 1. It can be configured to use DBCP or the user can provide
> connection information
> 2. In addition to setting up a comma separated list of values to
> log, they provide a comma-separated list of column names that
> correspond.
> 3. The user can configure what file types they want logged (for
> example only .htm and .jsp files).
>
> It has javadocs and is bundled in a single .jar which currently has to
> be dumped in the %TOMCAT_HOME%/server/lib directory.
>
> Someone on the Java Forums recommended contributing it to the Tomcat
> project, but I'm not sure how to do that. If this is of interest or
> someone knows how to contribute this, the information would be greatly
> appreciated.
>
> Tom Cole
> LAMATEK, Inc.
> (856) 599-6000 ext. 119
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>
Yoav Shapira
System Design and Management Fellow
MIT Sloan School of Management
Cambridge, MA, USA
yoavs@computer.org / www.yoavshapira.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org