class LoggerStub
Same name in other branches
- 11.x core/modules/system/tests/modules/logger_aware_test/src/LoggerStub.php \Drupal\logger_aware_test\LoggerStub
A logger stub.
Hierarchy
- class \Drupal\logger_aware_test\LoggerStub extends \Psr\Log\AbstractLogger
Expanded class hierarchy of LoggerStub
1 file declares its use of LoggerStub
- LoggerAwarePassTest.php in core/
modules/ system/ tests/ src/ Kernel/ DependencyInjection/ CompilerPass/ LoggerAwarePassTest.php
1 string reference to 'LoggerStub'
- logger_aware_test.services.yml in core/
modules/ system/ tests/ modules/ logger_aware_test/ logger_aware_test.services.yml - core/modules/system/tests/modules/logger_aware_test/logger_aware_test.services.yml
1 service uses LoggerStub
- logger.channel.logger_stub in core/
modules/ system/ tests/ modules/ logger_aware_test/ logger_aware_test.services.yml - Drupal\logger_aware_test\LoggerStub
File
-
core/
modules/ system/ tests/ modules/ logger_aware_test/ src/ LoggerStub.php, line 10
Namespace
Drupal\logger_aware_testView source
class LoggerStub extends AbstractLogger {
/**
* {@inheritdoc}
*/
public function log($level, $message, array $context = []) : void {
// Do nothing.
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
LoggerStub::log | public | function |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.