title: Zend framework log to database errors
body: <p>I'm trying to log PHP data returning from a call to Paypal to a database using the following code</p>
  
  <pre><code>$db = new Zend\Db\Adapter\Adapter(array(
  'driver' =&gt; $config-&gt;database-&gt;adapter,
  'database' =&gt; $config-&gt;database-&gt;params-&gt;dbname,
  'username' =&gt; $config-&gt;database-&gt;params-&gt;username,
  'password' =&gt; $config-&gt;database-&gt;params-&gt;password
  ));
  
  $paypalLog = array(
  'transactionId' =&gt; 'transactionId',
  'transactionType'  =&gt; 'transactionType',
  'paymentType'   =&gt; 'paymentType',
  'orderTime' =&gt; 'orderTime',
  'currencyCode' =&gt; 'currencyCode',
  'feeAmt' =&gt; 'feeAmt',
  'taxAmt' =&gt; 'taxAmt',
  'paymentStatus' =&gt; 'paymentStatus',
  'pendingReason' =&gt; 'pendingReason',
  'reasonCode' =&gt; 'reasonCode'
  );
  
  $writer = new Zend\Log\Writer\Db($db, 'paypal', $paypalLog);
  $logger = new Zend\Log\Logger();
  $logger-&gt;addWriter($writer);
  $logger-&gt;info($transactionId,
      $transactionType,
      $paymentType,
      $orderTime, 
      $currencyCode,
      $feeAmt,        
      $taxAmt,
      $paymentStatus,
      $pendingReason,
      $reasonCode);
  ?&gt;
  </code></pre>
  
  <p>I keep getting the below error</p>
  
  <pre><code>Fatal error: Uncaught exception 'Zend\Log\Exception\InvalidArgumentException' with message '$extra must be an array or implement Traversable' in C:\xampp\htdocs\app\library\Zend\Log\Logger.php:236 Stack trace: #0 C:\xampp\htdocs\app\library\Zend\Log\Logger.php(333): Zend\Log\Logger-&gt;log(6, '2SH18664DB63910...', 'expresscheckout') #1 C:\xampp\htdocs\app\public\orderconfirm.php(124): Zend\Log\Logger-&gt;info('2SH18664DB63910...', 'expresscheckout', 'instant', '2013-02-06T10:4...', 'AUD', '0.52', '0.00', 'Completed', 'None', 'None') #2 {main} thrown in C:\xampp\htdocs\app\library\Zend\Log\Logger.php on line 236
  </code></pre>
  
  <p>Any help appreciated.</p>