public function Log::start

public Log::start($logging_key)

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\Database

Code

public function start($logging_key) {
  if (empty($this->queryLog[$logging_key])) {
    $this->clear($logging_key);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Database!Log.php/function/Log::start/8.1.x