code: def get_logs(self):
          
          try:
              api_response = self.core_api.read_namespaced_pod_log(self.name, self.namespace)
              logger.debug("Logs from pod: %s in namespace: %s", self.name, self.namespace)
              for line in api_response.split('\n'):
                  logger.debug(line)
              return api_response
          except ApiException as e:
              # no reason to throw exception when logs cannot be obtain, just notify user
              logger.debug("Cannot get pod logs because of "
                           "exception during calling Kubernetes API %s\n", e)
  
          return None
docs: print logs from pod
          :return: str or None