Log::$queryLog

Same name in other branches
  1. 9 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::queryLog
  2. 10 core/lib/Drupal/Core/Database/Log.php \Drupal\Core\Database\Log::queryLog
  3. 11.x 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:

array( $logging_key = array( array('query' => '', 'args' => array(), 'caller' => '', 'target' => '', 'time' => 0), array('query' => '', 'args' => array(), 'caller' => '', 'target' => '', 'time' => 0), ), );

Type: array

File

core/lib/Drupal/Core/Database/Log.php, line 32

Class

Log
Database query logger.

Namespace

Drupal\Core\Database

Code

protected $queryLog = [];

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