You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use skipEnabledCheck for LoggerMessage.Define (#31562)
* Use skipEnabledCheck in MVC
* Use skipEnabledCheck in Http/Routing DefaultLinkGenerator, DefaultLinkParser, and DfaMatcher
* Use skipEnabledCheck in SignalR
* Use skipEnabledCheck in Components
* Use skipEnabledCheck in Hosting
* Use skipEnabledCheck in Servers/HttpSys
* Use skipEnabledCheck in Servers/Kestrel
* Use skipEnabledCheck in Middleware
* Avoid some allocations by checked IsEnabled first in MVC
* Avoid some allocations by checked IsEnabled first in Servers/Kestrel
* Simplify usage of logging in transports
LoggerMessage.Define<int,Type,int,Type>(LogLevel.Debug,newEventId(1,"InitializingChildComponent"),"Initializing component {ComponentId} ({ComponentType}) as child of {ParentComponentId} ({ParentComponentId})");
17
+
LoggerMessage.Define<int,Type,int,Type>(LogLevel.Debug,newEventId(1,"InitializingChildComponent"),"Initializing component {ComponentId} ({ComponentType}) as child of {ParentComponentId} ({ParentComponentId})",skipEnabledCheck:true);
LoggerMessage.Define<int,Type>(LogLevel.Debug,newEventId(3,"RenderingComponent"),"Rendering component {ComponentId} of type {ComponentType}");
23
+
LoggerMessage.Define<int,Type>(LogLevel.Debug,newEventId(3,"RenderingComponent"),"Rendering component {ComponentId} of type {ComponentType}",skipEnabledCheck:true);
LoggerMessage.Define<int,Type>(LogLevel.Debug,newEventId(4,"DisposingComponent"),"Disposing component {ComponentId} of type {ComponentType}");
26
+
LoggerMessage.Define<int,Type>(LogLevel.Debug,newEventId(4,"DisposingComponent"),"Disposing component {ComponentId} of type {ComponentType}",skipEnabledCheck:true);
"Endpoint '{Endpoint}' with route pattern '{RoutePattern}' was rejected by constraint '{ConstraintName}':'{Constraint}' with value '{RouteValue}' for the request path '{Path}'");
360
+
"Endpoint '{Endpoint}' with route pattern '{RoutePattern}' was rejected by constraint '{ConstraintName}':'{Constraint}' with value '{RouteValue}' for the request path '{Path}'",
0 commit comments