zendframework/zf2 — pull request #2725 by stefankleff (2012-10-10 09:21:24+00:00)
Title: Feature/logger factory

Added the ability to pass an options array to Logger, Writer, Formatter and Filter.
Therefore it's possible to use config files to configure a logger in a factory like in ZF1.

Example:
```php
$options = array(
'writers' => array(
array(
'name' => 'stream',
'stream' => 'php://output',
'formatter' => 'simple',
),
array(
'name' => 'stream',
'stream' => 'application.log',
'formatter' => array(
'name' => 'simple',
'options' => array(
'format' => '%timestamp%'
),
),
'filters' => array(
array(
'name' => 'priority',
'options => array(
'priority' => Logger::WARN)
),
),
),
),
);

$logger = new Logger($options);

```

No BC breaks, but I have to trigger an error instead of throwing an exception in AbstractWriter.php to keep the expected test values consistent. This should be changed but will be a (very minor) BC break.