function SysLog::syslogWrapper
Same name in other branches
- 9 core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::syslogWrapper()
- 10 core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::syslogWrapper()
- 11.x core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::syslogWrapper()
A syslog wrapper to make syslog functionality testable.
Parameters
int $level: The syslog priority.
string $entry: The message to send to syslog function.
1 call to SysLog::syslogWrapper()
- SysLog::log in core/
modules/ syslog/ src/ Logger/ SysLog.php
1 method overrides SysLog::syslogWrapper()
- SysLogTest::syslogWrapper in core/
modules/ syslog/ tests/ modules/ syslog_test/ src/ Logger/ SysLogTest.php - A syslog wrapper to make syslog functionality testable.
File
-
core/
modules/ syslog/ src/ Logger/ SysLog.php, line 97
Class
- SysLog
- Redirects logging messages to syslog.
Namespace
Drupal\syslog\LoggerCode
protected function syslogWrapper($level, $entry) {
syslog($level, $entry);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.