You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I hope you get global logging as well working in your package. Maybe also use RequestSending / ResponseReceived event listeners? Don't know if that's the smartest way.
Thanks for pointing my direction to this newly introduced event ResponseReceived which was apparently introduced in Laravel v8.49.2 and clearely solves this issue as this event has access to both the request and the response.
This is just a matter of simply implementing it now 😄 I would happily accept a PR for this if you are up for that, but of cause you are welcome to publish an alternative package. Maybe consider mentioning that the two packages are not compatibile since they both register the log() method on the PendingRequest class (this uses macros while yours uses mixins).
Add a configuration which would enable global logging of all requests made using the Laravel Http Client (if filter returns true of cause).
Note: This require the possibility to add global middleware to
Illuminate\Http\Client\Factory
- PR must be submittedThe text was updated successfully, but these errors were encountered: