Log a query to all active logging keys.
$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.
public function log(StatementInterface $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,
);
}
}