'Return the path to the job status log.
:param subdir - Optional parameter indicating that you want the path
to a subdirectory status log.
:return: The path where the status log should be.'

def get_status_log_path(self, subdir=None):

    if self.resultdir:
        if subdir:
            return os.path.join(self.resultdir, subdir, 'status.log')
        else:
            return os.path.join(self.resultdir, 'status.log')
    else:
        return None
