Announcements icon indicating copy to clipboard operation
Announcements copied to clipboard

[Breaking change]: Event IDs for some Microsoft.AspNetCore.Mvc.Core log messages changed

Open pranavkm opened this issue 2 years ago • 0 comments

Description

As part of updating the Microsoft.AspNetcore.Mvc.Core assembly to use LoggerMessageAttribute, we discovered logger event Ids being reused within a single log category. Log IDs and names should be unique so different message types can be identified. Consequently, these have been updated to ensure that the event Ids are unique for a logger category.

Version

.NET 7

Previous behavior

Some logger event IDs in Microsoft.AspNetCore.Mvc.Core were re-used within a single category.

New behavior

Duplicated event ids within a single category within the Microsoft.AspNetCore.Mvc.Core assembly were updated.

Type of breaking change

  • [X] Binary incompatible: Existing binaries may encounter a breaking change in behavior, such as failure to load/execute or different run-time behavior.
  • [ ] Source incompatible: Source code may encounter a breaking change in behavior when targeting the new runtime/component/SDK, such as compile errors or different run-time behavior.

Reason for change

Log IDs and names should be unique so different message types can be identified.

Recommended action

If you have code or configuration that references the old IDs, update those references to use the new IDs.

Affected APIs

Not detectable via API analysis

pranavkm avatar Mar 01 '22 01:03 pranavkm