7 class Logger
extends \Monolog\Logger
9 function __construct(Config
$config, $channel) {
10 parent
::__construct($channel);
11 foreach ($config->log
->$channel as $logger) {
12 $reflection = new \
ReflectionClass("Monolog\\Handler\\" . $logger->handler
);
13 if (!empty($logger->args
)) {
14 $handler = $reflection->newInstanceArgs($logger->args
->toArray());
16 $handler = $reflection->newInstance();
18 $this->pushHandler($handler);