Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Log.php

function 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 63

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);
    }
}
RSS feed
Powered by Drupal