Crud\Listener\ApiQueryLogListener::_getQueryLogs PHP 메소드

_getQueryLogs() 보호된 메소드

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