def METHOD_NAME(self, id, onlyMaster=False):
    """
    Get training logs of all pod of the experiment.
    By default get all the logs of Pod
    :param id: experiment id
    :param onlyMaster: By default include pod log of "master" which might be
     Tensorflow PS/Chief or PyTorch master
    :return: str: pods logs
    """
    response = self.experiment_api.METHOD_NAME(id)
    log_contents = response.result["logContent"]
    if onlyMaster is True and len(log_contents) != 0:
        log_contents = [log_contents[0]]
    for log_content in log_contents:
        logging.info("The logs of Pod %s:\n", log_content["podName"])
        for log in log_content["podLog"]:
            logging.info("%s", log)