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

[Feature Request] Custom Log Formats #305

Open
colinodell opened this issue Jul 1, 2020 · 2 comments
Open

[Feature Request] Custom Log Formats #305

colinodell opened this issue Jul 1, 2020 · 2 comments

Comments

@colinodell
Copy link

It would be great if this bundle allowed custom log formats using Guzzle's MessageFormatter class.

For example, I have the need to log the full request including the headers and body, but only the response headers. The current options don't seem to allow this.

@gregurco
Copy link
Member

gregurco commented Jul 1, 2020

Hello @colinodell
Could you please check this parameter: https://github.com/8p/EightPointsGuzzleBundle/blob/master/src/Resources/config/services.xml#L22 ?
Does it resolve your problem?

@colinodell
Copy link
Author

Ah, I didn't see that! Yes, that will work as a short-term solution. I do want to add other clients in the future, possibly with different log formats, so having a config option to customize the format per-client would be nice. But this should work for now.

Thanks!

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

2 participants