You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Feature | You can now enforce trimming of response body by setting a `X-Global-Logger-Trim-Always` request header, which will ignore the Content-Type whitelisting.
Copy file name to clipboardExpand all lines: README.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -49,8 +49,9 @@ Using the logger will log both the request and response of an external HTTP requ
49
49
- Multi-line log records that contain full request/response information (including all headers and body)
50
50
- Logging into separate logfile `http-client.log`. You're free to override this and use your own logging channel or just log to a different logfile.
51
51
- Full support of [Guzzle MessageFormatter](https://github.com/guzzle/guzzle/blob/master/src/MessageFormatter.php) variable substitutions for highly customized log messages.
52
-
- Basic obfuscation of credentials in HTTP Client requests
53
-
- Trimming of response body content to a certain length with support for Content-Type whitelisting
52
+
- Basic obfuscation of credentials in HTTP Client requests (both by header or body keys)
53
+
- Trimming of response body content to a certain length with support for `Content-Type` whitelisting
54
+
- Enforce trimming of response body content by setting a `X-Global-Logger-Trim-Always` request header, which will ignore the whitelisting.
54
55
-**Variant 1: Global logging** (default)
55
56
- Zero-configuration: Global logging is enabled by default in this package.
56
57
- Simple and performant implementation using `RequestSending` / `ResponseReceived` event listeners
0 commit comments