From ef3bb6f54b34d79ff266801082a453204fc7bf6b Mon Sep 17 00:00:00 2001 From: kkolinko Date: Mon, 1 Aug 2011 09:41:53 +0000 Subject: [PATCH] Additional comments about resolveHosts attribute of AccessLogValve. - The resolveHosts attribute could be used to change the meaning of "common" and "combined" patterns (as it still does in JDBCAccessLogValve), so I mentioned in the docs what to do when that is what the admin wants. - Align Javadoc with Configuration Reference. - Mention the effect of enableLookups attribute of connector on ExtendedAccessLogValve. git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1152716 13f79535-47bb-0310-9956-ffa450edef68 --- java/org/apache/catalina/valves/AccessLogValve.java | 3 ++- java/org/apache/catalina/valves/ExtendedAccessLogValve.java | 3 ++- webapps/docs/config/valve.xml | 6 +++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/java/org/apache/catalina/valves/AccessLogValve.java b/java/org/apache/catalina/valves/AccessLogValve.java index 0b6e8e5a0..c7570aa26 100644 --- a/java/org/apache/catalina/valves/AccessLogValve.java +++ b/java/org/apache/catalina/valves/AccessLogValve.java @@ -72,7 +72,8 @@ import org.apache.tomcat.util.buf.B2CConverter; *
  • %b - Bytes sent, excluding HTTP headers, or '-' if no bytes * were sent *
  • %B - Bytes sent, excluding HTTP headers - *
  • %h - Remote host name + *
  • %h - Remote host name (or IP address if + * enableLookups for the connector is false) *
  • %H - Request protocol *
  • %l - Remote logical username from identd (always returns '-') *
  • %m - Request method diff --git a/java/org/apache/catalina/valves/ExtendedAccessLogValve.java b/java/org/apache/catalina/valves/ExtendedAccessLogValve.java index 50f8382d0..5cfc290ab 100644 --- a/java/org/apache/catalina/valves/ExtendedAccessLogValve.java +++ b/java/org/apache/catalina/valves/ExtendedAccessLogValve.java @@ -49,7 +49,8 @@ import org.apache.tomcat.util.ExceptionUtils; * * The following fields are supported: *