File tree 1 file changed +6
-5
lines changed
spring-web/src/main/java/org/springframework/web/filter
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 41
41
*
42
42
* <p>Subclasses are passed the message to write to the log in the {@code beforeRequest} and
43
43
* {@code afterRequest} methods. By default, only the URI of the request is logged. However,
44
- * setting the {@code includeQueryString} property to {@code true} will cause the query string
45
- * of the request to be included also. The payload (body) of the request can be logged via the
46
- * {@code includePayload} flag. Note that this will only log that which is read, which might
47
- * not be the entire payload.
44
+ * setting the {@code includeQueryString} property to {@code true} will cause the query string of
45
+ * the request to be included also; this can be further extended through {@code includeClientInfo}
46
+ * and {@code includeHeaders}. The payload (body content) of the request can be logged via the
47
+ * {@code includePayload} flag: Note that this will only log the part of the payload which has
48
+ * actually been read, not necessarily the entire body of the request.
48
49
*
49
50
* <p>Prefixes and suffixes for the before and after messages can be configured using the
50
51
* {@code beforeMessagePrefix}, {@code afterMessagePrefix}, {@code beforeMessageSuffix} and
@@ -137,7 +138,7 @@ public void setIncludeHeaders(boolean includeHeaders) {
137
138
* Return whether the request headers should be included in the log message.
138
139
* @since 4.3
139
140
*/
140
- public boolean isIncludeHeaders () {
141
+ protected boolean isIncludeHeaders () {
141
142
return this .includeHeaders ;
142
143
}
143
144
You can’t perform that action at this time.
0 commit comments