public function log(LoggedQuery $query)
    {
        if (!empty($query->params)) {
            $query->query = $this->_interpolate($query);
        }
        $this->_log($query);
    }
public function log(LoggedQuery $query)
    {
        if (!empty($query->params)) {
            $query->query = $this->_interpolate($query);
        }
        $this->_log($query);
    }
public function log ( LoggedQuery $ query ) { if ( ! empty ( $ query -> params ) ) { $ query -> query = $ this -> _interpolate ( $ query ) ; } $ this -> _log ( $ query ) ; }
Writes a LoggedQuery into a log

@param \Cake\Database\Log\LoggedQuery $query to be written in log
@return void
Writes a LoggedQuery into a log