function SysLog::__construct
Same name in other branches
- 9 core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::__construct()
- 8.9.x core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::__construct()
- 11.x 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 47
Class
- SysLog
- Redirects logging messages to syslog.
Namespace
Drupal\syslog\LoggerCode
public function __construct(ConfigFactoryInterface $config_factory, LogMessageParserInterface $parser) {
$this->config = $config_factory->get('syslog.settings');
$this->parser = $parser;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.