src/Listener/ApiQueryLogListener.php
protected function _getQueryLogs()
    {
        $sources = $this->_getSources();

        $queryLog = [];
        foreach ($sources as $source) {
            $logger = $this->_getSource($source)->getLogger();
            if (method_exists($logger, 'getLogs')) {
                $queryLog[$source] = $logger->getLogs();
            }
        }

        return $queryLog;
    }
protected function _getQueryLogs()
    {
        $sources = $this->_getSources();

        $queryLog = [];
        foreach ($sources as $source) {
            $logger = $this->_getSource($source)->getLogger();
            if (method_exists($logger, 'getLogs')) {
                $queryLog[$source] = $logger->getLogs();
            }
        }

        return $queryLog;
    }
protected function _getQueryLogs ( ) { $ sources = $ this -> _getSources ( ) ; $ queryLog = [ ] ; foreach ( $ sources as $ source ) { $ logger = $ this -> _getSource ( $ source ) -> getLogger ( ) ; if ( method_exists ( $ logger , 'getLogs' ) ) { $ queryLog [ $ source ] = $ logger -> getLogs ( ) ; } } return $ queryLog ; }
Get the query logs for all sources

@return array
Get the query logs for all sources