You are here

protected function CommandBase::setupLogger in Apigee Edge 8

Sets up the logger service.

The service redirects Drupal logging messages to the console output.

Parameters

\Symfony\Component\Console\Output\OutputInterface $output: The output interface.

1 call to CommandBase::setupLogger()
CommandBase::setupIo in src/Command/CommandBase.php
Sets up the IO interface.

File

src/Command/CommandBase.php, line 106

Class

CommandBase
Class CommandBase for shared functionality.

Namespace

Drupal\apigee_edge\Command

Code

protected function setupLogger(OutputInterface $output) {
  $drupal_console_logger = new ConsoleLogger($output);
  $logger = new DrupalConsoleLog($this->logMessageParser, $drupal_console_logger);
  $this->loggerChannelFactory
    ->addLogger($logger);
}