EightPointsGuzzleBundle icon indicating copy to clipboard operation
EightPointsGuzzleBundle copied to clipboard

[Feature Request] Custom Log Formats

Open colinodell opened this issue 4 years ago • 2 comments

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.

colinodell avatar Jul 01 '20 21:07 colinodell

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?

gregurco avatar Jul 01 '20 21:07 gregurco

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!

colinodell avatar Jul 04 '20 15:07 colinodell