src/Database/Database.php
/**
	 * Internal function for recording query logs.
	 */
Internal function for recording query logs.
Internal function for recording query logs .
protected function doQueryLog() {
		$this->on('query', function ($statement, array $bindings, $millisTaken, $exception = null) {
			if (!$this->loggingEnabled) {
				return;
			}
			$this->log[] = array(
				'query' => $statement,
				'prepared' => !empty($bindings),
				'bindings' => $bindings,
				'duration' => $millisTaken,
				'exception' => $exception
			);
			if (count($this->log) > 512) {
				array_shift($this->log);
			}
		});
	}
protected function doQueryLog ( ) { $ this -> on ( 'query' , function ( $ statement , array $ bindings , $ millisTaken , $ exception = null ) { if ( ! $ this -> loggingEnabled ) { return ; } $ this -> log [ ] = array ( 'query' => $ statement , 'prepared' => ! empty ( $ bindings ) , 'bindings' => $ bindings , 'duration' => $ millisTaken , 'exception' => $ exception ) ; if ( count ( $ this -> log ) > 512 ) { array_shift ( $ this -> log ) ; } } ) ; }
Internal function for recording query logs.
Internal function for recording query logs .