def METHOD_NAME(exe_name):
    """
    Retrieve the logfile name
    """
    if salt.utils.platform.is_windows():
        tmp_dir = os.path.join(__opts__["cachedir"], "tmp")
        if not os.path.isdir(tmp_dir):
            os.mkdir(tmp_dir)
        logfile_tmp = tempfile.NamedTemporaryFile(
            dir=tmp_dir, prefix=exe_name, suffix=".log", delete=False
        )
        logfile = logfile_tmp.name
        logfile_tmp.close()
    else:
        logfile = salt.utils.path.join("/var/log", "{}.log".format(exe_name))
    return logfile