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

Breadcrumb

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

function Log::clear

Empty the query log for the specified logging key.

This method does not stop logging, it simply clears the log. To stop logging, use the end() method.

Parameters

$logging_key: The logging key to empty.

1 call to Log::clear()
Log::start in core/lib/Drupal/Core/Database/Log.php
Begin logging queries to the specified connection and logging key.

File

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

Class

Log
Database query logger.

Namespace

Drupal\Core\Database

Code

public function clear($logging_key) {
    $this->queryLog[$logging_key] = [];
}
RSS feed
Powered by Drupal