function NaughtyRecursiveLogger::log

Same name in other branches
  1. 8.9.x core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php \Drupal\Tests\Core\Logger\NaughtyRecursiveLogger::log()
  2. 10 core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php \Drupal\Tests\Core\Logger\NaughtyRecursiveLogger::log()
  3. 11.x core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php \Drupal\Tests\Core\Logger\NaughtyRecursiveLogger::log()

File

core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php, line 195

Class

NaughtyRecursiveLogger

Namespace

Drupal\Tests\Core\Logger

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.