public function DatabaseLog::log

cis7 log.inc public DatabaseLog::log(DatabaseStatementInterface $statement, $args, $time)
cle7 log.inc public DatabaseLog::log(DatabaseStatementInterface $statement, $args, $time)
elmsmedia7 log.inc public DatabaseLog::log(DatabaseStatementInterface $statement, $args, $time)
icor7 log.inc public DatabaseLog::log(DatabaseStatementInterface $statement, $args, $time)
meedjum_blog7 log.inc public DatabaseLog::log(DatabaseStatementInterface $statement, $args, $time)
mooc7 log.inc public DatabaseLog::log(DatabaseStatementInterface $statement, $args, $time)

Log a query to all active logging keys.

Parameters

$statement: The prepared statement object to log.

$args: The arguments passed to the statement object.

$time: The time in milliseconds the query took to execute.

File

includes/database/log.inc, line 115
Logging classes for the database layer.

Class

DatabaseLog
Database query logger.

Code

public function log(DatabaseStatementInterface $statement, $args, $time) {
  foreach (array_keys($this->queryLog) as $key) {
    $this->queryLog[$key][] = array(
      'query' => $statement->getQueryString(),
      'args' => $args,
      'target' => $statement->dbh->getTarget(),
      'caller' => $this->findCaller(),
      'time' => $time,
    );
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.