public function DatabaseLog8b7c:f320:99b9:690f:4595:cd17:293a:c069log public DatabaseLog8b7c:f320:99b9:690f:4595:cd17:293a:c069log(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,
    );
  }
}


    
{'path': 'public/docs/drupal~7/includes-database-log.inc/function/databaselog-log/7.x.html', 'source': 'DevDocs.IO'}