You are here

public function InMemoryLogger::log in Search API Solr 8.2

Same name and namespace in other branches
  1. 8.3 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::log()
  2. 8 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::log()
  3. 4.x tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::log()

File

tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php, line 17

Class

InMemoryLogger
A simple in memory logger.

Namespace

Drupal\search_api_solr_test\Logger

Code

public function log($level, $message, array $context = []) {
  $this->messages[] = [
    'level' => $level,
    'message' => $message,
    'context' => $context,
  ];
}