Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 35631 invoked from network); 13 Sep 2007 22:06:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 22:06:23 -0000 Received: (qmail 47075 invoked by uid 500); 13 Sep 2007 22:06:14 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 47032 invoked by uid 500); 13 Sep 2007 22:06:13 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 47021 invoked by uid 500); 13 Sep 2007 22:06:13 -0000 Delivered-To: apmail-jakarta-tomcat-dev@jakarta.apache.org Received: (qmail 47018 invoked by uid 99); 13 Sep 2007 22:06:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 15:06:13 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 22:08:00 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 02F851A9832; Thu, 13 Sep 2007 15:05:57 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r575482 - in /tomcat/container/tc5.5.x: catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java webapps/docs/changelog.xml Date: Thu, 13 Sep 2007 22:05:56 -0000 To: tomcat-dev@jakarta.apache.org From: pero@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20070913220557.02F851A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: pero Date: Thu Sep 13 15:05:56 2007 New Revision: 575482 URL: http://svn.apache.org/viewvc?rev=575482&view=rev Log: Support logging of all response header values at ExtendedAccessLogValve (ex. add x-O(Set-Cookie) to your pattern). Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java tomcat/container/tc5.5.x/webapps/docs/changelog.xml Modified: tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java?rev=575482&r1=575481&r2=575482&view=diff ============================================================================== --- tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java (original) +++ tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/valves/ExtendedAccessLogValve.java Thu Sep 13 15:05:56 2007 @@ -72,6 +72,7 @@ *
  • time-taken: Time (in seconds) taken to serve the request
  • *
  • x-A(XXX): Pull XXX attribute from the servlet context
  • *
  • x-C(XXX): Pull the first cookie of the name XXX
  • + *
  • x-O(XXX): Pull the all response header values XXX
  • *
  • x-R(XXX): Pull XXX attribute from the servlet request
  • *
  • x-S(XXX): Pull XXX attribute from the session
  • *
  • x-P(...): Call request.getParameter(...) @@ -130,6 +131,7 @@ * * * @author Tim Funk + * @author Peter Rossbach * @version $Revision$ $Date$ */ @@ -160,7 +162,7 @@ * The descriptive information about this implementation. */ protected static final String info = - "org.apache.catalina.valves.ExtendedAccessLogValve/1.0"; + "org.apache.catalina.valves.ExtendedAccessLogValve/1.1"; /** @@ -697,7 +699,29 @@ } + /** + * write a specific response header - x-O{xxx} + */ + protected String responseHeader(Request request,String header) { + Response response = request.getResponse() ; + if (null != response) { + String[] values = response.getHeaderValues(header); + if(values.length > 0) { + StringBuffer buf = new StringBuffer(); + for (int i = 0; i < values.length; i++) { + String string = values[i]; + buf.append(string) ; + if(i+1 Made session createTime accessible for all SessionManager via JMX (pero) + + Support logging of all response header values at ExtendedAccessLogValve (ex. add x-O(Set-Cookie) to your pattern). (pero) + --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org