public function NaughtyRecursiveLogger::log in Drupal 9
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php \Drupal\Tests\Core\Logger\NaughtyRecursiveLogger::log()
File
- core/
tests/ Drupal/ Tests/ Core/ Logger/ LoggerChannelTest.php, line 162 - Contains \Drupal\Tests\Core\Logger\LoggerChannelTest.
Class
Namespace
Drupal\Tests\Core\LoggerCode
public function log($level, $message, array $context = []) {
$this->channel
->log(rand(0, 7), $message, $context);
}