function Log::start
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::start()
- 10 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::start()
- 11.x core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::start()
Begin logging queries to the specified connection and logging key.
If the specified logging key is already running this method does nothing.
Parameters
$logging_key: The identification key for this log request. By specifying different logging keys we are able to start and stop multiple logging runs simultaneously without them colliding.
File
-
core/
lib/ Drupal/ Core/ Database/ Log.php, line 61
Class
- Log
- Database query logger.
Namespace
Drupal\Core\DatabaseCode
public function start($logging_key) {
if (empty($this->queryLog[$logging_key])) {
$this->clear($logging_key);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.