public function DatabaseLog::start
7.x log.inc | public DatabaseLog::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
- drupal-7.x/
includes/ database/ log.inc, line 64 - Logging classes for the database layer.
Class
- DatabaseLog
- Database query logger.
Code
public function start($logging_key) {
if (empty($this->queryLog[$logging_key])) {
$this->clear($logging_key);
}
}