public function doRun(InputInterface $input, OutputInterface $output) { $handler = new ConsoleHandler(); $handler->setOutput($output); $this->logger->pushHandler($handler); $exitCode = parent::doRun($input, $output); $handler->close(); return $exitCode; }