1: <?php
2:
3: namespace Guzzle\Log;
4:
5: use Zend\Log\Logger;
6:
7: /**
8: * Adapts a Zend Framework 2 logger object
9: */
10: class Zf2LogAdapter extends AbstractLogAdapter
11: {
12: /**
13: * {@inheritdoc}
14: */
15: public function __construct(Logger $logObject)
16: {
17: $this->log = $logObject;
18: }
19:
20: /**
21: * {@inheritdoc}
22: */
23: public function log($message, $priority = LOG_INFO, $extras = null)
24: {
25: $this->log->log($priority, $message, $extras ?: array());
26: }
27: }
28: