diff --git a/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java b/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java index 0fa8678b81e0cb973c7183ad4e54c2f79dabf761..346a5da5c8a5b408007bd32bfd996652d43164e3 100644 --- a/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java +++ b/spring-web/src/main/java/org/springframework/web/filter/AbstractRequestLoggingFilter.java @@ -41,10 +41,11 @@ import org.springframework.web.util.WebUtils; * *

Subclasses are passed the message to write to the log in the {@code beforeRequest} and * {@code afterRequest} methods. By default, only the URI of the request is logged. However, - * setting the {@code includeQueryString} property to {@code true} will cause the query string - * of the request to be included also. The payload (body) of the request can be logged via the - * {@code includePayload} flag. Note that this will only log that which is read, which might - * not be the entire payload. + * setting the {@code includeQueryString} property to {@code true} will cause the query string of + * the request to be included also; this can be further extended through {@code includeClientInfo} + * and {@code includeHeaders}. The payload (body content) of the request can be logged via the + * {@code includePayload} flag: Note that this will only log the part of the payload which has + * actually been read, not necessarily the entire body of the request. * *

Prefixes and suffixes for the before and after messages can be configured using the * {@code beforeMessagePrefix}, {@code afterMessagePrefix}, {@code beforeMessageSuffix} and @@ -137,7 +138,7 @@ public abstract class AbstractRequestLoggingFilter extends OncePerRequestFilter * Return whether the request headers should be included in the log message. * @since 4.3 */ - public boolean isIncludeHeaders() { + protected boolean isIncludeHeaders() { return this.includeHeaders; }