diff --git a/src/Symfony/Bundle/ZendBundle/Logger/DebugLogger.php b/src/Symfony/Bundle/ZendBundle/Logger/DebugLogger.php index 89ce37097d..e3b125bf97 100644 --- a/src/Symfony/Bundle/ZendBundle/Logger/DebugLogger.php +++ b/src/Symfony/Bundle/ZendBundle/Logger/DebugLogger.php @@ -18,10 +18,13 @@ use Zend\Log\Writer\AbstractWriter; * * @author Fabien Potencier */ -class DebugLogger extends AbstractWriter +class DebugLogger extends AbstractWriter implements DebugLoggerInterface { protected $logs = array(); + /** + * {@inheritdoc} + */ public function getLogs() { return $this->logs; diff --git a/src/Symfony/Bundle/ZendBundle/Logger/DebugLoggerInterface.php b/src/Symfony/Bundle/ZendBundle/Logger/DebugLoggerInterface.php new file mode 100644 index 0000000000..1796324d26 --- /dev/null +++ b/src/Symfony/Bundle/ZendBundle/Logger/DebugLoggerInterface.php @@ -0,0 +1,30 @@ + + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ + +/** + * DebugLoggerInterface. + * + * @author Fabien Potencier + */ +interface DebugLoggerInterface +{ + /** + * Returns an array of logs. + * + * A log is an array with the following mandatory keys: + * timestamp, message, priority, and priorityName. + * + * @return array An array of logs + */ + public function getLogs(); +}