Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Configure service for log middleware per client #246

Open
ugurerkan opened this issue May 9, 2019 · 3 comments
Open

Configure service for log middleware per client #246

ugurerkan opened this issue May 9, 2019 · 3 comments

Comments

@ugurerkan
Copy link

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!

@csarrazi
Copy link
Owner

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.

@ugurerkan
Copy link
Author

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

@andreicio
Copy link

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.

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

No branches or pull requests

3 participants