public function DrushLog::__construct

8.0.x DrushLog.php public DrushLog::__construct(LogMessageParserInterface $parser)
master DrushLog.php public DrushLog::__construct(LogMessageParserInterface $parser, LoggerInterface $logger)

Constructs a DrushLog object.

Parameters

\Drupal\Core\Logger\LogMessageParserInterface $parser: The parser to use when extracting message variables.

File

lib/Drush/Log/DrushLog.php, line 54
Contains \Drush\Log\DrushLog.

Namespace

Drush\Log

Class

DrushLog
Redirects Drupal logging messages to Drush log.

Code

public function __construct(LogMessageParserInterface $parser, LoggerInterface $logger) {
  $this->parser = $parser;
  $this->logger = $logger;
}