ArrayLogAdapter
in package
implements
LogAdapterInterface
Stores all log messages in an array
Table of Contents
Interfaces
- LogAdapterInterface
- Adapter class that allows Guzzle to log data to various logging implementations.
Properties
- $logs : mixed
Methods
- clearLogs() : mixed
- Clears logged entries
- getLogs() : array<string|int, mixed>
- Get logged entries
- log() : mixed
- Log a message at a priority
Properties
$logs
protected
mixed
$logs
= array()
Methods
clearLogs()
Clears logged entries
public
clearLogs() : mixed
getLogs()
Get logged entries
public
getLogs() : array<string|int, mixed>
Return values
array<string|int, mixed>log()
Log a message at a priority
public
log(mixed $message[, mixed $priority = LOG_INFO ][, mixed $extras = array() ]) : mixed
Parameters
- $message : mixed
-
Message to log
- $priority : mixed = LOG_INFO
-
Priority of message (use the \LOG_* constants of 0 - 7)
- $extras : mixed = array()
-
Extra information to log in event