function SysLog::syslogWrapper

Same name in other branches
  1. 8.9.x core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::syslogWrapper()
  2. 10 core/modules/syslog/src/Logger/SysLog.php \Drupal\syslog\Logger\SysLog::syslogWrapper()
  3. 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 105

Class

SysLog
Redirects logging messages to syslog.

Namespace

Drupal\syslog\Logger

Code

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.