Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PSR-3 logger #87

Open
mirfilip opened this issue Jul 14, 2017 · 1 comment
Open

Add support for PSR-3 logger #87

mirfilip opened this issue Jul 14, 2017 · 1 comment

Comments

@mirfilip
Copy link

Guzzle 6 has a good support for logging. Configuring HTTP client, you can easily log a lot of details.

When this middleware is used, it's impossible to hook into request / response process and log that request / response was cached.

@lazka
Copy link
Contributor

lazka commented Jan 17, 2020

You can use the normal guzzle logger and log the custom header this middleware adds:

...
new MessageFormatter("... CACHE={res_header_X-Kevinrob-Cache}");
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants