code: def get_worker_log(self, log_id, log_type, size=0):
          
          params = OrderedDict([('log', ''), ('id', log_id)])
          if log_type is not None:
              log_type = log_type.lower()
              if log_type not in LOG_TYPES_MAPPING:
                  raise ValueError('log_type should choose a value in ' +
                                   ' '.join(six.iterkeys(LOG_TYPES_MAPPING)))
              params['logtype'] = LOG_TYPES_MAPPING[log_type]
          if size > 0:
              params['size'] = str(size)
          resp = self._client.get(self.resource(), params=params)
          return resp.text
docs: Get logs from worker.
  
          :param log_id: id of log, can be retrieved from details.
          :param log_type: type of logs. Possible log types contains {log_types}
          :param size: length of the log to retrieve
          :return: log content