CsaGuzzleBundle icon indicating copy to clipboard operation
CsaGuzzleBundle copied to clipboard

Configure service for log middleware per client

Open ugurerkan opened this issue 5 years ago • 3 comments

Hello,

I want to configure bundle for log per client, with this I will able to store log data per file related with client. I found https://gist.github.com/csarrazi/bb6ac210827973033cbd this good example for separate guzzle logs from main mono log stream but can't figure out how to apply this per client?

In short, I guess I need define logger service for client.

Any help? Thanks!

ugurerkan avatar May 09 '19 14:05 ugurerkan

Hi @ugurerkan. Currently, the bundle implementation does not allow you to inject a different logger per client, and uses a single logger for all clients. If you'd like to implement this, feel free to implement a pull request here.

csarrazi avatar May 12 '19 16:05 csarrazi

Hi @csarrazi I'll happy to look into it 👍

ugurerkan avatar May 14 '19 14:05 ugurerkan

The EightPointsGuzzleBundle has this feature, but it doesn't allow for sorting of plugins and does not use a compiler pass to collect all plugins.

andreicio avatar May 27 '19 10:05 andreicio