class SysLogTest
Same name in this branch
- 9 core/modules/syslog/tests/src/Kernel/SyslogTest.php \Drupal\Tests\syslog\Kernel\SyslogTest
- 9 core/modules/syslog/tests/src/Functional/SyslogTest.php \Drupal\Tests\syslog\Functional\SyslogTest
Same name and namespace in other branches
- 11.x core/modules/syslog/tests/src/Kernel/SyslogTest.php \Drupal\Tests\syslog\Kernel\SyslogTest
- 11.x core/modules/syslog/tests/src/Functional/SyslogTest.php \Drupal\Tests\syslog\Functional\SyslogTest
- 11.x core/modules/syslog/tests/modules/syslog_test/src/Logger/SysLogTest.php \Drupal\syslog_test\Logger\SysLogTest
Redirects logging messages to error_log.
Hierarchy
- class \Drupal\syslog\Logger\SysLog extends \Psr\Log\LoggerInterface uses \Drupal\Core\Logger\RfcLoggerTrait
- class \Drupal\syslog_test\Logger\SysLogTest extends \Psr\Log\LoggerInterface implements \Drupal\syslog\Logger\SysLog
Expanded class hierarchy of SysLogTest
1 string reference to 'SysLogTest'
- syslog_test.services.yml in core/
modules/ syslog/ tests/ modules/ syslog_test/ syslog_test.services.yml - core/modules/syslog/tests/modules/syslog_test/syslog_test.services.yml
1 service uses SysLogTest
- logger.syslog_test in core/
modules/ syslog/ tests/ modules/ syslog_test/ syslog_test.services.yml - Drupal\syslog_test\Logger\SysLogTest
File
-
core/
modules/ syslog/ tests/ modules/ syslog_test/ src/ Logger/ SysLogTest.php, line 11
Namespace
Drupal\syslog_test\LoggerView source
class SysLogTest extends SysLog implements LoggerInterface {
/**
* {@inheritdoc}
*/
protected function syslogWrapper($level, $entry) {
$log_path = \Drupal::service('file_system')->realpath('public://syslog.log');
error_log($entry . PHP_EOL, 3, $log_path);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.