Class LogPlugin
Plugin class that will add request and response logging to an HTTP request.
The log plugin uses a message formatter that allows custom messages via template variable substitution.
- Guzzle\Plugin\Log\LogPlugin implements Symfony\Component\EventDispatcher\EventSubscriberInterface
Namespace: Guzzle\Plugin\Log
See: MessageLogger for a list of available log template variable substitutions
Located at src/Guzzle/Plugin/Log/LogPlugin.php
See: MessageLogger for a list of available log template variable substitutions
Located at src/Guzzle/Plugin/Log/LogPlugin.php
public
|
#
__construct(
|
public static
|
#
getDebugPlugin( boolean $wireBodies = true, resource $stream = null )
Get a log plugin that outputs full request, response, and curl error information to stderr |
public static
|
|
public
|
|
public
|
|
public
|
|
public
|
#
onRequestSent(
Triggers the actual log write when a request completes |
protected
|
$logAdapter
Adapter responsible for writing log data |
|
protected
|
$formatter
Formatter used to format messages before logging |
|
protected
boolean
|
$wireBodies
Whether or not to wire request and response bodies |