You are here

public function NaughtyRecursiveLogger::log in Drupal 9

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

NaughtyRecursiveLogger

Namespace

Drupal\Tests\Core\Logger

Code

public function log($level, $message, array $context = []) {
  $this->channel
    ->log(rand(0, 7), $message, $context);
}