Database::startLog

final public static function Database::startLog

final public static Database::startLog($logging_key, $key = 'default')

Starts logging a given logging key on the specified connection.

Parameters

string $logging_key: The logging key to log.

string $key: The database connection key for which we want to log.

Return value

\Drupal\Core\Database\Log The query log object. Note that the log object does support richer methods than the few exposed through the Datab