dotnet / AspNetCore.Docs

Documentation for ASP.NET Core
https://docs.microsoft.com/aspnet/core
Creative Commons Attribution 4.0 International
12.58k stars 25.3k forks source link

It is not clear what parts of the request are logged #22356

Open hansmbakker opened 3 years ago

hansmbakker commented 3 years ago

There is a section on Logging being built in to IHttpClientFactory clients but it is not clear what exactly is being logged.

Only the header information is explicitly mentioned (that you need to enable the trace log level for it).

What about the request / response bodies and other parts of the requests/responses?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Rick-Anderson commented 3 years ago

It states may include changes to request headers or to the response status code

hansmbakker commented 3 years ago

Yes, and an example of how the logging would look like would help, and it would help to make explicit whether request/response bodies can be logged.

And if so, how.

Rick-Anderson commented 2 years ago

Thank you for contacting us. we're closing it in an effort to keep our backlog clean. If you believe there is a concern related to the ASP.NET Core which hasn't been addressed, please file a new issue.

hansmbakker commented 2 years ago

@Rick-Anderson

I see this issue has a label needs-more-info; I believe I asked a clear question and I didn't want to unnecessarily bump the discussion only to prevent the issue getting closed.

If the question was not clear, could you please explain me how I could make the ask clearer?

Also, can you please reopen the issue and give feedback on whether

please-reopen