Logging Guzzle Requests

When you’re building an API consumer, you should log your API requests and responses. Otherwise it can feel like you’re working blind. Here I’ll explain how to configure a Guzzle Middleware to log requests to a file. This is useful for debugging and historical purposes. The way to do this is to pass a new HandlerStack with our logging middleware… Continue reading Logging Guzzle Requests