EightPointsGuzzleBundle
EightPointsGuzzleBundle copied to clipboard
[Feature Request] Custom Log Formats
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.
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?
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!