You are here

public function HttpblLogTrapper::__construct in http:BL 8

Same name in this branch
  1. 8 src/Logger/HttpblLogTrapper.php \Drupal\httpbl\Logger\HttpblLogTrapper::__construct()
  2. 8 src/ProxyClass/Logger/HttpblLogTrapper.php \Drupal\httpbl\ProxyClass\Logger\HttpblLogTrapper::__construct()

Constructs a HttpblLogtrapper object.

Parameters

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

\Drupal\Core\Logger\LoggerChannelInterface $logger: The logger to add.

File

src/Logger/HttpblLogTrapper.php, line 60

Class

HttpblLogTrapper
(An arbitrated logger)

Namespace

Drupal\httpbl\Logger

Code

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