[Breaking change]: Revert the Console Formatter Default in .NET 6 Containers #29243
Closed
1 of 2 tasks
Labels
breaking-change
Indicates a .NET Core breaking change
🏁 Release: .NET 6
Issues and PRs for the .NET 6 release
doc-idea
Indicates issues that are suggestions for new topics [org][type][category]
Pri1
High priority, do before Pri2 and Pri3
source incompatible
Source code may encounter a breaking change in behavior when targeting the new version.
Description
The breaking change will occur in .NET 6.0.5 (May 2022 servicing) and is related to the default console formatter configured in
aspnet
containers. See dotnet/dotnet-docker#3706 for details.Version
Other (please put exact version in description textbox)
Previous behavior
In previous servicing releases of .NET 6,
aspnet
container images were configured with theLogging__Console__FormatterName
environment variable set toJson
. This resulted in the console output similar to the following:New behavior
Starting in .NET 6.0.5,
aspnet
containers will revert theLogging__Console__FormatterName
change and leave it unset, resulting in output similar to the following:Type of breaking change
Reason for change
When the change to use JSON formatting was made in the .NET 6 GA release, this broken many scenarios that relied on the original simple formatting as described in dotnet/dotnet-docker#2725.
Recommended action
If users do not want this change and want to continue using the JSON formatting, they can configure their container to use this by setting the
Logging__Console__FormatterName
environment variable toJson
.Feature area
Other (please put exact area in description textbox)
Affected APIs
No response
The text was updated successfully, but these errors were encountered: