NOTE: For Version 3 of the AWS SDK for PHP, please see the V3 User Guide and V3 API Reference.

# Class ArrayLogAdapter

Stores all log messages in an array

  Guzzle\Log\ArrayLogAdapter implements Guzzle\Log\LogAdapterInterface

Namespace: Guzzle\Log
Located at Guzzle/Log/ArrayLogAdapter.php

## Methods summary

- `public` `log ( string $message, integer $priority = LOG_INFO, array $extras = array() )`

  Log a message at a priority

- `public` `getLogs ( )`

  Get logged entries

- `public` `clearLogs ( )`

  Clears logged entries

## Methods detail

# `public`
`log( string $message, integer $priority = LOG_INFO, array $extras = array() )`

Log a message at a priority

#### Parameters

$message
  `string`
  $message Message to log
$priority
  `integer`
  $priority Priority of message (use the \LOG_* constants of 0 - 7)
$extras
  `array`
  $extras Extra information to log in event

#### Implementation of

`Guzzle\Log\LogAdapterInterface::log()`
# `public array`
`getLogs( )`

Get logged entries

#### Returns

`array`
# `public`
`clearLogs( )`

Clears logged entries

### Magic methods summary

## Properties summary

`protected array` | $logs | #