You are here

protected function SysLog::syslogWrapper in Drupal 9

Same name and namespace in other branches
  1. 8 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);
}