def logs(self, num=None, source=None, tail=False):

        # Bootstrap payload package.
        payload = {'logplex': 'true'}

        if num:
            payload['num'] = num

        if source:
            payload['source'] = source

        if tail:
            payload['tail'] = 1

        # Grab the URL of the logplex endpoint.
        r = self._h._http_resource(
            method='GET',
            resource=('apps', self.name, 'logs'),
            data=payload
        )

        # Grab the actual logs.
        r = requests.get(r.content)

        if not tail:
            return r.content
        else:
            # Return line iterator for tail!
            return r.iter_lines()
operator for `ObjectSet.getUnion`
dataset/ETHPy150Open kennethreitz-archive/python-github3/github3/models.py/App.logs--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.3/pymel/core/nodetypes.py/ObjectSet.__or__