You are here

public function SysLog::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::__construct()

Constructs a SysLog object.

Parameters

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

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

File

core/modules/syslog/src/Logger/SysLog.php, line 50
Contains \Drupal\syslog\Logger\SysLog.

Class

SysLog
Redirects logging messages to syslog.

Namespace

Drupal\syslog\Logger

Code

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