You are here

public function ErrorLogMessageFormatter::__construct in Logging and alerts 8

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

Constructs a SysLog object.

Parameters

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

\Drupal\Core\Render\Renderer $renderer: The Renderer object.

File

errorlog/src/Logger/ErrorLogMessageFormatter.php, line 38

Class

ErrorLogMessageFormatter
Logger class for errorlog module.

Namespace

Drupal\errorlog\Logger

Code

public function __construct(ConfigFactory $config_factory, Renderer $renderer) {
  $this->config = $config_factory
    ->get('errorlog.settings');
  $this->renderer = $renderer;
}