protected function shouldLogSlowQuery(SqlQuery $query)
    {
        return $this->config->logSlowQueries() && $query->time() >= $this->config->slowLogTime() &&
            preg_match($this->config->slowQueriesPattern(), $query->raw());
    }
protected function shouldLogSlowQuery(SqlQuery $query)
    {
        return $this->config->logSlowQueries() && $query->time() >= $this->config->slowLogTime() &&
            preg_match($this->config->slowQueriesPattern(), $query->raw());
    }
protected function shouldLogSlowQuery ( SqlQuery $ query ) { return $ this -> config -> logSlowQueries ( ) && $ query -> time ( ) >= $ this -> config -> slowLogTime ( ) && preg_match ( $ this -> config -> slowQueriesPattern ( ) , $ query -> raw ( ) ) ; }
Verify whether slow query should be logged.

@param SqlQuery $query

@return bool
Verify whether slow query should be logged .