Update multiple_loggers.rst

typo
parent b4bb327c
......@@ -51,8 +51,8 @@ the container with the channel name, defaulting to the bundled handler.
$app['monolog.factory'] = $app->protect(function ($name) use ($app) {
$log = new $app['monolog.logger.class']($name);
$handlers = isset($app['monolog.'.$name.'handlers'])
? $app['monolog.'.$name.'handlers']
$handlers = isset($app['monolog.'.$name.'.handlers'])
? $app['monolog.'.$name.'.handlers']
: array($app['monolog.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