Skip to content

Commit ca6282d

Browse files
MAGETWO-52915: [GITHUB] Cannot Inject Custom Handler to Magento\Framework\Logger\Monolog #2234
1 parent f06e0d9 commit ca6282d

File tree

2 files changed

+26
-10
lines changed

2 files changed

+26
-10
lines changed

composer.lock

Lines changed: 13 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/internal/Magento/Framework/Logger/Monolog.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,19 @@
1010

1111
class Monolog extends Logger
1212
{
13+
/**
14+
* {@inheritdoc}
15+
*/
16+
public function __construct($name, array $handlers = array(), array $processors = array())
17+
{
18+
/**
19+
* TODO: This should eliminated once https://github.com/Seldaek/monolog/pull/692 appeared in M2
20+
*/
21+
$handlers = array_values($handlers);
22+
23+
parent::__construct($name, $handlers, $processors);
24+
}
25+
1326
/**
1427
* Adds a log record.
1528
*

0 commit comments

Comments
 (0)