protected function shouldLogQuery(SqlQuery $query)
    {
        return $this->config->logAllQueries() &&
            preg_match($this->config->allQueriesPattern(), $query->raw());
    }
protected function shouldLogQuery(SqlQuery $query)
    {
        return $this->config->logAllQueries() &&
            preg_match($this->config->allQueriesPattern(), $query->raw());
    }
protected function shouldLogQuery ( SqlQuery $ query ) { return $ this -> config -> logAllQueries ( ) && preg_match ( $ this -> config -> allQueriesPattern ( ) , $ query -> raw ( ) ) ; }
Verify whether query should be logged.

@param SqlQuery $query

@return bool
Verify whether query should be logged .