Closed
Description
Depends on dotnet/runtime#45290
There are some places that benefit from this change.
Everywhere logger.IsEnabled is checked, can profit by removing the double-check.
Then there are some places where "heavier objects" need to be created, even if logging is disabled for that level.
(Can use this regex search).
Just from the first results-page (didn't check all / exhaustive) e.g.:
aspnetcore/src/Mvc/Mvc.ViewFeatures/src/MvcViewFeaturesLoggerExtensions.cs
Lines 138 to 139 in 155f402