Log::$queryLog
Same name in other branches
- 9 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::queryLog
- 8.9.x core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::queryLog
- 10 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::queryLog
Cache of logged queries. This will only be used if the query logger is enabled.
The structure for the logging array is as follows:
[
$logging_key = [
[
'query' => '',
'args' => [],
'caller' => '',
'target' => '',
'time' => 0,
'start' => 0,
],
[
'query' => '',
'args' => [],
'caller' => '',
'target' => '',
'time' => 0,
'start' => 0,
],
],
];
Type: array
File
-
core/
lib/ Drupal/ Core/ Database/ Log.php, line 35
Class
- Log
- Database query logger.
Namespace
Drupal\Core\DatabaseCode
protected $queryLog = [];
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.