public function InMemoryLogger::log in Search API Solr 4.x
Same name and namespace in other branches
- 8.3 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::log()
- 8 tests/modules/search_api_solr_test/src/Logger/InMemoryLogger.php \Drupal\search_api_solr_test\Logger\InMemoryLogger::log()
- 8.2 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\LoggerCode
public function log($level, $message, array $context = []) {
$this->messages[] = [
'level' => $level,
'message' => $message,
'context' => $context,
];
}