[Breaking change]: Http logging in dotnet 8 doesn't work without call AddHttpLogging #44532
Open
1 of 3 tasks
Labels
breaking-change
Indicates a .NET Core breaking change
okr-quality
Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
📌 seQUESTered
Identifies that an issue has been imported into Quest.
Description
There is an behavioral breaking change in .NET 8: Http logging doesn't work without call AddHttpLogging.
It was discussed here: dotnet/aspnetcore#51322
Main documentation has been updated, but this change is not mentioned in the "Breaking changes in .NET 8" article.
Version
.NET 8
Previous behavior
It was enough to call app.UseHttpLogging(); to have HTTP logging activated.
New behavior
You need to call services.AddHttpLogging() too, otherwise your service crashes.
Type of breaking change
Reason for change
dotnet/aspnetcore#50163
Recommended action
Please update "Breaking changes in .NET 8" article.
Feature area
ASP.NET Core
Affected APIs
No response
Associated WorkItem - 370661
The text was updated successfully, but these errors were encountered: