def stream(self, id, task, type, follow=False, offset=<NUM_LIT:0>, origin="<STR_LIT:start>", plain=False):
params = {<EOL>"<STR_LIT>": task,<EOL>"<STR_LIT:type>": type,<EOL>"<STR_LIT>": follow,<EOL>"<STR_LIT>": offset,<EOL>"<STR_LIT>": origin,<EOL>"<STR_LIT>": plain<EOL>}<EOL>return self.request(id, params=params, method="<STR_LIT>").text<EOL>
This endpoint streams a task's stderr/stdout logs.

            https://www.nomadproject.io/api/client.html#stream-logs

            arguments:
              - id: (str) allocation_id required
              - task: (str) name of the task inside the allocation to stream logs from
              - type: (str) Specifies the stream to stream. Either "stderr|stdout"
              - follow: (bool) default false
              - offset: (int) default 0
              - origin: (str) either start|end, default "start"
              - plain: (bool) Return just the plain text without framing. default False
            returns: (str) text
            raises:
              - nomad.api.exceptions.BaseNomadException
              - nomad.api.exceptions.BadRequestNomadException