Share via

Request response body logging in azure function

arun kumar 1 Reputation point
2021-08-03T18:12:49.53+00:00

Hi guys

Is there a way to centrally log all request response body in azure function endpoints .Net Core 3.1? I know we can implement Itelemetry but that needs a call from every single endpoint to log request response which is annoying. Appreciate your thoughts.

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. arun kumar 1 Reputation point
    2021-08-12T11:22:06.983+00:00

    Hi

    Yes I did - move to .Net 5. You will have control
    over your middleware which should obviously allow you to tap into request response pipeline which was basically not possible in 3.1.

    Thanks for the follow up.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.