-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Open
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
Description
I want to log my http request and response, but i want log only body and only my headers.
For example, i don't want log Accept header, or Connection header, i want log only X-USER-ID header. Today, if I choose LoggingFields = HttpLoggingFields.RequestBody | HttpLoggingFields.RequestHeaders;
i see in logs headers with Redacted value. I want to exclude them from log.
How can i do this scenario?
Using .NET 9
Metadata
Metadata
Assignees
Labels
area-networkingIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractionsIncludes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions