From: kkolinko Date: Mon, 1 Aug 2011 09:41:53 +0000 (+0000) Subject: Additional comments about resolveHosts attribute of AccessLogValve. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=ef3bb6f54b34d79ff266801082a453204fc7bf6b;p=tomcat7.0 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 --- 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: *