Class Guzzle\Log\ArrayLogAdapter

InheritanceGuzzle\Log\ArrayLogAdapter
ImplementsGuzzle\Log\LogAdapterInterface

Stores all log messages in an array

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$logs Guzzle\Log\ArrayLogAdapter

Public Methods

Hide inherited methods

MethodDescriptionDefined By
clearLogs() Clears logged entries Guzzle\Log\ArrayLogAdapter
getLogs() Get logged entries Guzzle\Log\ArrayLogAdapter
log() Guzzle\Log\ArrayLogAdapter

Property Details

$logs protected property
protected $logs = []

Method Details

clearLogs() public method

Clears logged entries

public void clearLogs ( )
getLogs() public method

Get logged entries

public array getLogs ( )
log() public method

public void log ( $message, $priority LOG_INFO, $extras = [] )
$message
$priority
$extras