class SysLogTest in Drupal 10
Same name in this branch
- 10 core/modules/syslog/tests/src/Functional/SyslogTest.php \Drupal\Tests\syslog\Functional\SyslogTest
- 10 core/modules/syslog/tests/src/Kernel/SyslogTest.php \Drupal\Tests\syslog\Kernel\SyslogTest
- 10 core/modules/syslog/tests/modules/syslog_test/src/Logger/SysLogTest.php \Drupal\syslog_test\Logger\SysLogTest
Same name and namespace in other branches
- 8 core/modules/syslog/tests/modules/syslog_test/src/Logger/SysLogTest.php \Drupal\syslog_test\Logger\SysLogTest
- 9 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_test\Logger\SysLogTest extends \Drupal\syslog\Logger\SysLog implements \Psr\Log\LoggerInterface
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);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SysLogTest:: |
protected | function |