protected function _log($query, $params, $startTime)
    {
        $query->took = (int)round((microtime(true) - $startTime) * 1000, 0);
        $query->params = $params ?: $this->_compiledParams;
        $query->query = $this->queryString;
        $this->getLogger()->log($query);
    }
protected function _log($query, $params, $startTime)
    {
        $query->took = (int)round((microtime(true) - $startTime) * 1000, 0);
        $query->params = $params ?: $this->_compiledParams;
        $query->query = $this->queryString;
        $this->getLogger()->log($query);
    }
protected function _log ( $ query , $ params , $ startTime ) { $ query -> took = ( int ) round ( ( microtime ( true ) - $ startTime ) * 1000 , 0 ) ; $ query -> params = $ params ? : $ this -> _compiledParams ; $ query -> query = $ this -> queryString ; $ this -> getLogger ( ) -> log ( $ query ) ; }
Copies the logging data to the passed LoggedQuery and sends it
to the logging system.

@param \Cake\Database\Log\LoggedQuery $query The query to log.
@param array $params List of values to be bound to query.
@param float $startTime The microtime when the query was executed.
@return void
Copies the logging data to the passed LoggedQuery and sends it to the logging system .