def METHOD_NAME(request, pk, year, month, day):
    """
    Shows an overview of the log for the given date
    """
    # Check read permission
    plan = get_object_or_404(NutritionPlan, pk=pk)
    user = plan.user
    is_owner = request.user == user
    if not is_owner and not user.userprofile.ro_access:
        return HttpResponseForbidden()
    try:
        date = datetime.date(year=int(year), month=int(month), day=int(day))
    except ValueError:
        date = datetime.date.today()
        return HttpResponseRedirect(
            reverse(
                'nutrition:log:detail',
                kwargs={
                    'pk': pk,
                    'year': date.year,
                    'month': date.month,
                    'day': date.day
                }
            )
        )
    context = {
        'plan': plan,
        'date': date,
        'show_shariff': is_owner,
        'is_owner': is_owner,
        'log_summary': plan.get_log_summary(date),
        'log_entries': plan.get_log_entries(date),
        'nutritional_data': plan.get_nutritional_values()
    }
    return render(request, 'log/detail.html', context)