public function viewLogAction()
    {
        $token = $this->getRequest()->getParam('token');
        $log = $this->getRequest()->getParam('log');

        if (!$token || !$log) {
            $this->getResponse()->setHttpResponseCode(400)->setBody('Invalid parameters');
            return;
        }

        /** @var Sheep_Debug_Model_RequestInfo $requestProfile */
        $requestProfile = Mage::getModel('sheep_debug/requestInfo')->load($token, 'token');
        if (!$requestProfile->getId()) {
            $this->getResponse()->setHttpResponseCode(404)->setBody('Request profile not found');
            return;
        }

        try {
            $content = $requestProfile->getLogging()->getLoggedContent($log);
            $this->getResponse()->setHttpResponseCode(200)->setBody($content);
        } catch (Exception $e) {
            $this->getResponse()->setHttpResponseCode(200)->setBody('Unable to retrieve logged content');
        }
    }
public function viewLogAction()
    {
        $token = $this->getRequest()->getParam('token');
        $log = $this->getRequest()->getParam('log');

        if (!$token || !$log) {
            $this->getResponse()->setHttpResponseCode(400)->setBody('Invalid parameters');
            return;
        }

        /** @var Sheep_Debug_Model_RequestInfo $requestProfile */
        $requestProfile = Mage::getModel('sheep_debug/requestInfo')->load($token, 'token');
        if (!$requestProfile->getId()) {
            $this->getResponse()->setHttpResponseCode(404)->setBody('Request profile not found');
            return;
        }

        try {
            $content = $requestProfile->getLogging()->getLoggedContent($log);
            $this->getResponse()->setHttpResponseCode(200)->setBody($content);
        } catch (Exception $e) {
            $this->getResponse()->setHttpResponseCode(200)->setBody('Unable to retrieve logged content');
        }
    }
Returns lines from log file