def update_logger(
    image, model_used, pred_class, pred_conf, correct=False, user_label=None
):
    """
    Tracks feedback given in app, updates and returns logger dictionary.
    """

    logger = {
        "image": image,
        "model_used": model_used,
        "pred_class": pred_class,
        "correct": correct,
        "user_label": user_label,
    }
    return logger