Skip to content

Commit ca72ec3

Browse files
Merge pull request #28266 from adityamandaleeka/formdata_logging
Add note about another use case for MediaTypeOptions
2 parents 55336db + 6b05687 commit ca72ec3

File tree

1 file changed

+2
-0
lines changed
  • aspnetcore/fundamentals/http-logging

1 file changed

+2
-0
lines changed

aspnetcore/fundamentals/http-logging/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ To configure the HTTP logging middleware, call <xref:Microsoft.Extensions.Depend
7070

7171
[!code-csharp[](samples/6.x/Program.cs?name=snippet_Addservices&highlight=10)]
7272

73+
This approach can also be used to enable logging for data that is not logged by default (e.g. form data, which might have a media type such as `application/x-www-form-urlencoded` or `multipart/form-data`).
74+
7375
#### `MediaTypeOptions` methods
7476

7577
* <xref:Microsoft.AspNetCore.HttpLogging.MediaTypeOptions.AddText%2A>

0 commit comments

Comments
 (0)