function DatabaseLog::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 DatabaseLog::clear()
- DatabaseLog::start in includes/
database/ log.inc - Begin logging queries to the specified connection and logging key.
File
-
includes/
database/ log.inc, line 91
Class
- DatabaseLog
- Database query logger.
Code
public function clear($logging_key) {
$this->queryLog[$logging_key] = array();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.