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 37

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.