|
| __construct ($target= 'php://output', array $events=array()) |
|
| update (SplSubject $subject) |
|
Definition at line 70 of file Log.php.
HTTP_Request2_Observer_Log::__construct |
( |
|
$target = 'php://output' , |
|
|
array |
$events = array() |
|
) |
| |
Constructor.
- Parameters
-
mixed | $target | Can be a file path (default: php://output), a resource, or an instance of the PEAR Log class. |
array | $events | Array of events to listen to (default: all events) |
- Returns
- void
Definition at line 107 of file Log.php.
HTTP_Request2_Observer_Log::log |
( |
|
$message | ) |
|
|
protected |
Logs the given message to the configured target.
- Parameters
-
string | $message | Message to display |
- Returns
- void
Definition at line 180 of file Log.php.
HTTP_Request2_Observer_Log::update |
( |
SplSubject |
$subject | ) |
|
Called when the request notifies us of an event.
- Parameters
-
- Returns
- void
Definition at line 129 of file Log.php.
array HTTP_Request2_Observer_Log::$events |
Initial value:= array(
'connect',
'sentHeaders',
'sentBody',
'receivedHeaders',
'receivedBody',
'disconnect',
)
The events to log.
Definition at line 86 of file Log.php.
resource Log HTTP_Request2_Observer_Log::$target = null |
|
protected |
The log target, it can be a a resource or a PEAR Log instance.
Definition at line 79 of file Log.php.
The documentation for this class was generated from the following file:
- libs/PEAR.1.9.5/HTTP/Request2/Observer/Log.php