def list_plex_logs():
    logs_dir = plexpy.CONFIG.PMS_LOGS_FOLDER

    if not logs_dir or logs_dir and not os.path.exists(logs_dir):
        return []

    log_files = []
    for file in os.listdir(logs_dir):
        if file.startswith('Plex Transcoder Statistics'):
            # Plex Transcoder Statistics is an XML file
            continue
        if os.path.isfile(os.path.join(logs_dir, file)):
            name, ext = os.path.splitext(file)
            if ext == '.log' and not name[-1].isdigit():
                log_files.append(name)

    return log_files