You are here

public function EmailLogger::__construct in Logging and alerts 8

Same name and namespace in other branches
  1. 2.0.x emaillog/src/Logger/EmailLogger.php \Drupal\emaillog\Logger\EmailLogger::__construct()

Constructs a SysLog object.

Parameters

\Drupal\Core\Config\ConfigFactory $config_factory: The configuration factory object.

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

File

emaillog/src/Logger/EmailLogger.php, line 45

Class

EmailLogger
Logger class for emaillog module.

Namespace

Drupal\emaillog\Logger

Code

public function __construct(ConfigFactory $config_factory, LogMessageParserInterface $parser) {
  $this->config = $config_factory
    ->get('emaillog.settings');
  $this->parser = $parser;
}