Open Journal Systems  3.3.0
Guzzle\Log\ArrayLogAdapter Class Reference
Inheritance diagram for Guzzle\Log\ArrayLogAdapter:
Guzzle\Log\LogAdapterInterface

Public Member Functions

 clearLogs ()
 
 getLogs ()
 
 log ($message, $priority=LOG_INFO, $extras=array())
 

Protected Attributes

 $logs = array()
 

Detailed Description

Stores all log messages in an array

Definition at line 8 of file ArrayLogAdapter.php.

Member Function Documentation

◆ clearLogs()

Guzzle\Log\ArrayLogAdapter::clearLogs ( )

Clears logged entries

Definition at line 30 of file ArrayLogAdapter.php.

◆ getLogs()

Guzzle\Log\ArrayLogAdapter::getLogs ( )

Get logged entries

Returns
array

Definition at line 22 of file ArrayLogAdapter.php.

References Guzzle\Log\ArrayLogAdapter\$logs.

◆ log()

Guzzle\Log\ArrayLogAdapter::log (   $message,
  $priority = LOG_INFO,
  $extras = array() 
)

Log a message at a priority

Parameters
string$messageMessage to log
integer$priorityPriority of message (use the \LOG_* constants of 0 - 7)
array$extrasExtra information to log in event

Implements Guzzle\Log\LogAdapterInterface.

Definition at line 12 of file ArrayLogAdapter.php.

Field Documentation

◆ $logs

Guzzle\Log\ArrayLogAdapter::$logs = array()
protected

Definition at line 10 of file ArrayLogAdapter.php.

Referenced by Guzzle\Log\ArrayLogAdapter\getLogs().


The documentation for this class was generated from the following file: