guzzlehttp/log-subscriber
Guzzle log subscriber that records HTTP requests and responses via any PSR-3 logger. It helps debug API integrations by logging request method and URL, response status, and other message details, making it easy to inspect traffic and monitor client behavior during development or production troublesh...
guzzlehttp/log-subscriber is not a Laravel-native package. It is a Guzzle 4/5 event subscriber that logs HTTP requests and responses at the wire level. Modern Laravel uses Guzzle 6/7 through Illuminate\Http\Client, where the old event-subscriber model has been replaced by middleware. Fit is therefore poor for current Laravel and acceptable only in a legacy service already pinned to Guzzle 4/5.Middleware::log with MessageFormatter, wired to a PSR-3/Laravel logger.GuzzleHttp\Middleware::log() with a HandlerStack and a PSR-3 logger, configured through a centralized HTTP client service provider. In Laravel, route this to a dedicated log channel with redaction, sampling, and body-size limits. Use Laravel’s Guzzle middleware hook where available, or inject a configured Guzzle client into the HTTP layer.composer.lock and service code for Guzzle versions and current logging behavior. If no Guzzle 4/5 dependency exists, reject the package. If a legacy dependency exists, isolate the subscriber behind an internal adapter, reproduce the log format with native middleware, add regression tests for headers/bodies/redaction, then remove the archived package before the next framework upgrade.Middleware::log as the target state; 5) migrate logging format and redaction; 6) remove guzzlehttp/log-subscriber and add a guardrail preventing reintroduction. Do not place this package in a shared Laravel core dependency.Middleware::log. A short internal runbook and an explicit removal date are mandatory if a legacy exception is granted.How can I help you explore Laravel packages today?