How to log the content-type??

2005-05-06 Thread Juan Manuel Soler =?iso-8859-1?b?UmluY/Nu?=
Hi

Someone know how to log the content-type of any request??

Thx


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to log the content-type??

2005-05-06 Thread Tim Funk
Sort of ...
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html
But AccessLogValve doesn't support outgoing headers for logging. But a 
workaround is the create a filter which catches the 
HttpServletResponse.setContentType and sets the ContentType as a 
ServletRequestAttribute so you can use this syntax in a custom pattern when 
declaring the AccessLogVavle.

%r{myContentTypeVariable}
-Tim
Juan Manuel Soler Rincón wrote:
Hi
Someone know how to log the content-type of any request??
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Log the Content-type

2005-05-04 Thread Juan Manuel Soler =?iso-8859-1?b?UmluY/Nu?=
Hi

I need to log the content-type of the request in a tomcat web-server, can
someone help  me with that???

thx

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]