src/Error/ExceptionRenderer.php
protected function _getQueryLog()
    {
        $queryLog = [];
        $sources = ConnectionManager::configured();
        foreach ($sources as $source) {
            $logger = ConnectionManager::get($source)->getLogger();
            if (method_exists($logger, 'getLogs')) {
                $queryLog[$source] = $logger->getLogs();
            }
        }

        return $queryLog;
    }
protected function _getQueryLog()
    {
        $queryLog = [];
        $sources = ConnectionManager::configured();
        foreach ($sources as $source) {
            $logger = ConnectionManager::get($source)->getLogger();
            if (method_exists($logger, 'getLogs')) {
                $queryLog[$source] = $logger->getLogs();
            }
        }

        return $queryLog;
    }
protected function _getQueryLog ( ) { $ queryLog = [ ] ; $ sources = ConnectionManager :: configured ( ) ; foreach ( $ sources as $ source ) { $ logger = ConnectionManager :: get ( $ source ) -> getLogger ( ) ; if ( method_exists ( $ logger , 'getLogs' ) ) { $ queryLog [ $ source ] = $ logger -> getLogs ( ) ; } } return $ queryLog ; }
Helper method to get query log.

@return array Query log.
Helper method to get query log .