code: def logs(id, url, follow, sleep_duration=1):
      
      instance_log_id = get_log_id(id)
  
      if url:
          log_url = "{}/api/v1/resources/{}?content=true".format(
              floyd.floyd_host, instance_log_id)
          floyd_logger.info(log_url)
          return
  
      if follow:
          floyd_logger.info("Launching job ...")
          follow_logs(instance_log_id, sleep_duration)
      else:
          log_file_contents = ResourceClient().get_content(instance_log_id)
          if len(log_file_contents.strip()):
              floyd_logger.info(log_file_contents.rstrip())
          else:
              floyd_logger.info("Launching job now. Try after a few seconds.")
docs: View the logs of a job.
  
      To follow along a job in real time, use the --follow flag