Add second logging channel

This commit is contained in:
Romain Neutron
2013-07-01 14:38:17 +02:00
parent 24f6f19731
commit ce34bca408
8 changed files with 91 additions and 34 deletions

View File

@@ -96,8 +96,8 @@ class module_console_taskrun extends Command
}
$logfile = __DIR__ . '/../../../../logs/task_' . $task_id . '.log';
$this->container['monolog']->pushHandler(new RotatingFileHandler($logfile, 10));
$this->task = $task_manager->getTask($task_id, $this->container['monolog']);
$this->container['task-manager.logger']->pushHandler(new RotatingFileHandler($logfile, 10));
$this->task = $task_manager->getTask($task_id, $this->container['task-manager.logger']);
$lib2v = array(
'DEBUG' => \task_abstract::LOG_DEBUG,