You are here

public function MessagePlaceholderProcessor::__construct in Monolog 2.x

Same name and namespace in other branches
  1. 8 src/Logger/Processor/MessagePlaceholderProcessor.php \Drupal\monolog\Logger\Processor\MessagePlaceholderProcessor::__construct()

Construct default object.

Parameters

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

File

src/Logger/Processor/MessagePlaceholderProcessor.php, line 25

Class

MessagePlaceholderProcessor
Parse and replace message placeholders.

Namespace

Drupal\monolog\Logger\Processor

Code

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