public function DrupalConsoleLog::__construct in Apigee Edge 8
Constructs a DrupalConsoleLog object.
Parameters
\Drupal\Core\Logger\LogMessageParserInterface $log_message_parser: The parser to use when extracting message variables.
\Psr\Log\LoggerInterface $logger: The logger instance.
File
- src/
Command/ DrupalConsoleLog.php, line 57
Class
- DrupalConsoleLog
- Redirects Drupal logging messages to Drupal Console log.
Namespace
Drupal\apigee_edge\CommandCode
public function __construct(LogMessageParserInterface $log_message_parser, LoggerInterface $logger) {
$this->logMessageParser = $log_message_parser;
$this->logger = $logger;
}