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]



Reply via email to