Commit 5ee043a6 authored by Fabien Potencier's avatar Fabien Potencier

bug#794 Update multiple_loggers.rst (xyfantis)

This PR was merged into the master branch.

Discussion
----------

Update multiple_loggers.rst

typo

Commits
-------

e855c2a2 Update multiple_loggers.rst
parents b4bb327c e855c2a2
...@@ -51,8 +51,8 @@ the container with the channel name, defaulting to the bundled handler. ...@@ -51,8 +51,8 @@ the container with the channel name, defaulting to the bundled handler.
$app['monolog.factory'] = $app->protect(function ($name) use ($app) { $app['monolog.factory'] = $app->protect(function ($name) use ($app) {
$log = new $app['monolog.logger.class']($name); $log = new $app['monolog.logger.class']($name);
$handlers = isset($app['monolog.'.$name.'handlers']) $handlers = isset($app['monolog.'.$name.'.handlers'])
? $app['monolog.'.$name.'handlers'] ? $app['monolog.'.$name.'.handlers']
: array($app['monolog.handler']); : array($app['monolog.handler']);
foreach ($handlers as $handler) { foreach ($handlers as $handler) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment