tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Dabbs" <dmda...@gmail.com>
Subject How best to get some data from a Servlet to Apache access log. . .
Date Sat, 02 Oct 2010 18:40:45 GMT
Hello.

I'm running Tomcat fronted by Apache httpd via mod_proxy_ajp.
There's a small bit of data from my Servlet response I'd like to 
get into the Apache access_log.

I know I could set a response header, say X-MyData, and log
that using a CustomLog directive. But I don't want this header
cruft going out with the response from Apache. Would I use mod_headers
to remove this header (and yet still log to access_log)?

Another possibility is to use a "note," which I can also log
using CustomLog. It's not clear though, how I would set this note
using the Response obj available to my servlet code and have it 
propagate back through AJP.

Looking for the best way to skin this cat.

Thanks!

David



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message