Registry / http-client / guzzlehttp-log-subscriber

guzzlehttp-log-subscriber

JSON →
library1.0.1phppackagistunverified

Logs HTTP requests and responses as they are sent over the wire (Guzzle 4+).

composer require guzzlehttp/log-subscriber
INSTALL
IMPORT
SIG · GUZZLEHTTP-LOG-SUB
G
guzzlehttp-log-subscriber
http-clientphpv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LogSubscriber
use GuzzleHttp\Subscriber\Log\LogSubscriber;

Attach log subscriber to a Guzzle client.

<?php use GuzzleHttp\Client; use GuzzleHttp\Subscriber\Log\LogSubscriber; $client = new Client(); $log = new LogSubscriber(); $client->getEmitter()->attach($log); $response = $client->get('http://example.com');
Debug
Known issues
breakingOnly works with Guzzle 4 and 5; not compatible with Guzzle 6+.
fix
Use GuzzleHttp\Middleware::log() for Guzzle 6+.
affects: >=1.0.0
Upgrade
Version history
1.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
27 hits · last 30 days
node
24
Resources