getQueryLog() public method

Get the connection query log.
public getQueryLog ( ) : array
return array
 /**
  * Show debug parameters.
  *
  * @param  $output
  * @return mixed
  */
 protected function showDebugger($output)
 {
     $output['queries'] = $this->connection->getQueryLog();
     $output['input'] = $this->input;
     return $output;
 }
示例#2
0
 /**
  * Append debug parameters on output.
  *
  * @param  array $output
  * @return array
  */
 public function showDebugger(array $output)
 {
     $output['queries'] = $this->connection->getQueryLog();
     $output['input'] = $this->request->all();
     return $output;
 }
示例#3
0
 /**
  * Writes performance related statistics into the log file
  *
  * @return void
  */
 public function logPerformance()
 {
     $this->log->info(PHP_EOL . 'Performance Statistics:' . PHP_EOL . 'Current Route: ' . $this->request->getRequestUri() . PHP_EOL . 'Time to create the Response: ' . $this->getCurrentTimeDifference($this->laravel_start, 'ms') . ' ms' . PHP_EOL . 'Total performed DB Queries: ' . count($this->db->getQueryLog()) . PHP_EOL);
 }