Return all logs

@param string $integrationID
@return Moltin\Response
961797
public function getLogs($integrationID = false, $jobID = false)
    {
        $uri = "logs"; // get all logs by default
        if (!empty($integrationID) && !empty($jobID)) {
            $uri = $integrationID . "/jobs/" . $jobID . "/logs"; // get logs for a given job
        }
        return $this->call('GET', false, $uri);
    }
356755
public function get(int $entityId)
    {
        $response = $this->infakt->get($this->getServiceName().'/'.$entityId.'.json');

        if (2 != substr((string) $response->getStatusCode(), 0, 1)) {
            return null;
        }

        return $this->getMapper()->map(\GuzzleHttp\json_decode($response->getBody()->getContents(), true));
    }
196991
public function getLogs($level = null)
	{
		// If no level was given, return all logs.
		if(is_null($level))
		{
			return $this->logs;
		}

		else
		{
			if(isset($this->logs[$level]))
			{
				return $this->logs[$level];
			}
		}

		// If the level doesn't exist, just return an empty array.
		//
		// @todo: check that the level exists, otherwise throw an exception. 
		return array();
	}
68599
public function retrieveAll($userId)
    {
        if (!isset($this->userMeta[$userId])) {
            $data                    = $this->getModel()->where('user_id', '=', $userId)->get();
            $this->userMeta[$userId] = $this->processRetrievedData($userId, $data);
        }
        return Arr::get($this->userMeta, $userId);
    }
878610
public function getAllStatuses($workflowId)
	{
		$wDef = $this->getWorkflowDefinition($workflowId);
		if ( $wDef == null) {
			throw new WorkflowException('No workflow found with id ' . $workflowId);
		}
		$allStatuses = [];
		foreach( $wDef[self::KEY_NODES] as $statusId => $statusDef){
			$allStatuses[$statusId] = $this->getStatus($statusId);
		}
		return $allStatuses;
	}
436017
public function getEventMessageSites($messageId) {
        $dbres = \CEventMessage::GetLang($messageId);
        return $this->fetchAll($dbres, false, 'LID');
    }
258657
private function findContentfulEntry(string $id): ?ContentfulEntry
    {
        return $this->entityManager->getRepository(ContentfulEntry::class)->find($id);
    }
937045
public function getChildren($parentId)
    {
        return $this->channelList->filter(function (Channel $channel) use ($parentId) {
            return $channel->getParentId() == $parentId;
        });
    }
1238036
protected function getEmbeddedData($contentId)
    {
        foreach ($this->parts as $part) {
            if ($this->getPart('content-id', $part) == $contentId) {
                $embeddedData = 'data:';
                $embeddedData .= $this->getPart('content-type', $part);
                $embeddedData .= ';'.$this->getPart('transfer-encoding', $part);
                $embeddedData .= ','.$this->getPartBody($part);
                return $embeddedData;
            }
        }
        return '';
    }
596724
public static function getLogData($syncid, $type = 'all', $limitstart = null, $limit = null, $sort = 'id', $dir = 'ASC')
	{
		$db = Factory::getDBO();

		$query = $db->getQuery(true)
			->select('*')
			->from('#__jfusion_sync_details')
			->where('syncid = ' . $db->quote($syncid));

		if (!empty($sort)) {
			$query->order($sort . ' ' . $dir);
		}

		if ($type != 'all') {
			$query->where('action = ' . $db->quote($type));
		}

		$db->setQuery($query, $limitstart, $limit);
		$results = $db->loadObjectList('id');

		return $results;
	}
175817
private function getLastmodifiedByContentLog($contenttypeslug, $contentid)
    {
        // Get the proper ContentType.
        $contenttype = $this->getContentType($contenttypeslug);

        // get the changelog for the requested ContentType.
        $options = ['limit' => 5, 'order' => 'date', 'direction' => 'DESC'];

        if ((int) $contentid == 0) {
            $isFiltered = false;
        } else {
            $isFiltered = true;
            $options['contentid'] = (int) $contentid;
        }

        /** @var Repository\LogChangeRepository $repo */
        $repo = $this->storage()->getRepository(Entity\LogChange::class);
        $changelog = $repo->getChangeLogByContentType($contenttype['slug'], $options);

        $context = [
            'changelog'   => $changelog,
            'contenttype' => $contenttype,
            'contentid'   => $contentid,
            'filtered'    => $isFiltered,
        ];

        return $this->render('@bolt/components/panel-lastmodified.twig', ['context' => $context]);
    }
238328
public function getLeaves($rootId = null): Collection
    {
        $list = $this->repo->pushCriteria(new GetLeaves($rootId))
            ->all([
                'id',
                'pid',
                'root_id',
                'deep',
                'name'
            ]);

        return $list;
    }
463245
public function getContent($packetId = null)
    {

        if (!isset($this->packetId)) {
            return $content = implode("/n", $this->content);
        }

        //Return the content with PacketId;
        return isset($this->content[$packetId]) ? $this->content[$packetId] : "";
    }
912505
function get_logger( $id = '', $prefix_slug = true ) {
            return FS_Logger::get_logger( ( $prefix_slug ? $this->_slug : '' ) . ( ( ! $prefix_slug || empty( $id ) ) ? '' : '_' ) . $id );
        }
975080
public function exportAllAction($contentId)
    {
        $content = $this->contentService->loadContent($contentId);

        $exportCriteria = new ExportCriteria(
            [
                'content' => $content,
            ]
        );

        $export = $this->exporter->exportAll($exportCriteria);

        $writer = Writer::createFromFileObject(new SplTempFileObject());
        $writer->setDelimiter(",");
        $writer->setNewline("\r\n"); //use windows line endings for compatibility with some csv libraries
        $writer->setOutputBOM(Writer::BOM_UTF8); //adding the BOM sequence on output
        $writer->insertOne($export->header);
        $writer->insertAll($export->contents);

        $writer->output('export.csv');
        return new Response('');

    }
623684
def extrair_logs(self):
        
        resp = self._http_post('extrairlogs')
        conteudo = resp.json()
        return RespostaExtrairLogs.analisar(conteudo.get('retorno'))
284173
public function getAllForTimelogCategory(string $id, array $params = [])
    {
        return $this->executeRequest(
            RequestMethodEnum::GET,
            ResourceMethodEnum::GET_ALL_FOR_TIMELOG_CATEGORY,
            $params,
            $id
        );
    }