def METHOD_NAME(
    status_code: int | None = None,
    include_body: bool = False,
    include_time: bool = True,
    is_before: bool = False,
) -> str:
    name = get_current_user_name()
    session_id = get_current_session_id()
    if session_id:
        session_id = f" ({session_id})"
    else:
        session_id = ""
    if current_app.config["LOG_HOST"]:
        url_or_path = request.url
    else:
        url_or_path = request.full_path if request.query_string else request.path
    ua: UserAgent = request.user_agent
    msg = f"""