It is disabled by default and gets activated as soon as a command is executed. Instead of listening to the console events, the output can also be set manually. The minimum logging level at which this handler will be triggered depends on the verbosity setting of the console output. The default mapping is: - OutputInterface::VERBOSITY_NORMAL will show all WARNING and higher logs - OutputInterface::VERBOSITY_VERBOSE (-v) will show all NOTICE and higher logs - OutputInterface::VERBOSITY_VERY_VERBOSE (-vv) will show all INFO and higher logs - OutputInterface::VERBOSITY_DEBUG (-vvv) will show all DEBUG and higher logs, i.e. all logs This mapping can be customized with the $verbosityLevelMap constructor parameter.
Inheritance: extends Monolog\Handler\AbstractProcessingHandler
 /**
  * {@inheritDoc}
  */
 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;
 }