AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware 1.0.0

AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware : Simple Route Debugging to your Logger

Add RouteDebuggingLogger to your AspNetCore app and behold in relieve as it explains to your Logger what routes AspNetCore.Mvc has identified.

```
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
   if (env.IsDevelopment())
   {
       app
          .UseDeveloperExceptionPage()
          .UseMiddleware<RouteDebuggingLogger>();
   }
   app
      .UseMvcWithDefaultRoute()
      .UseComponentAsService()
      .UseKitchenSink();
}

```
Example output:
```
info: AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware.RouteDebuggingLogger[0]
     Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.ActionDescriptors.Version=0. Actions.Count=13
info: AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware.RouteDebuggingLogger[0]
     Action: Example.AspNetCore.Empty.HomeController.Index (Example.AspNetCore.Minimal) Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor
     Constraints: null
     AttributeRouteInfo :
     BoundProperties : []
     FilterDescriptors : [{"FilterType":"Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter","Order":-2147483648,"Scope":20},{"FilterType":"Microsoft.AspNetCore.Mvc.ViewFeatures.SaveTempDataAttribute","Order":-2147483548,"Scope":10},{"FilterType":"Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter","Order":0,"Scope":10}]
     Parameters : []
     Properties : {}
     RouteValues : {"action":"Index","controller":"Home"}
     Timings in milliseconds to inspect and format each attribute: Name:0, Constraints:23, AttributeRouteInfo:23, BoundProperties:41, FilterDescriptors:60, Parameters:63, Properties:67, RouteValues:69

... etc ...

```

Set `RouteDebuggingLogger.LogLevel` if you must change the LogLevel.

Install-Package AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware -Version 1.0.0
dotnet add package AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware --version 1.0.0
<PackageReference Include="AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Add RouteDebuggingLogger to your AspNetCore app and behold in relieve as it explains to your Logger what routes AspNetCore.Mvc has identified.

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app
           .UseDeveloperExceptionPage()
           .UseMiddleware<RouteDebuggingLogger>();
    }
    app
       .UseMvcWithDefaultRoute()
       .UseComponentAsService()
       .UseKitchenSink();
}

Example output:

info: AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware.RouteDebuggingLogger[0]
      Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.ActionDescriptors.Version=0. Actions.Count=13
info: AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware.RouteDebuggingLogger[0]
      Action: Example.AspNetCore.Empty.HomeController.Index (Example.AspNetCore.Minimal) Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor
      Constraints: null
      AttributeRouteInfo : 
      BoundProperties : []
      FilterDescriptors : [{"FilterType":"Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter","Order":-2147483648,"Scope":20},{"FilterType":"Microsoft.AspNetCore.Mvc.ViewFeatures.SaveTempDataAttribute","Order":-2147483548,"Scope":10},{"FilterType":"Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter","Order":0,"Scope":10}]
      Parameters : []
      Properties : {}
      RouteValues : {"action":"Index","controller":"Home"}
      Cumulative timing in milliseconds to inspect and format each attribute: Name:0, Constraints:23, AttributeRouteInfo:23, BoundProperties:41, FilterDescriptors:60, Parameters:63, Properties:67, RouteValues:69

... etc ...

Set RouteDebuggingLogger.LogLevel if you must change the LogLevel.

Add RouteDebuggingLogger to your AspNetCore app and behold in relieve as it explains to your Logger what routes AspNetCore.Mvc has identified.

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    if (env.IsDevelopment())
    {
        app
           .UseDeveloperExceptionPage()
           .UseMiddleware<RouteDebuggingLogger>();
    }
    app
       .UseMvcWithDefaultRoute()
       .UseComponentAsService()
       .UseKitchenSink();
}

Example output:

info: AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware.RouteDebuggingLogger[0]
      Microsoft.AspNetCore.Mvc.Internal.ActionDescriptorCollectionProvider.ActionDescriptors.Version=0. Actions.Count=13
info: AspNetCore.Mvc.Routes.DebuggingLoggerMiddleware.RouteDebuggingLogger[0]
      Action: Example.AspNetCore.Empty.HomeController.Index (Example.AspNetCore.Minimal) Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor
      Constraints: null
      AttributeRouteInfo : 
      BoundProperties : []
      FilterDescriptors : [{"FilterType":"Microsoft.AspNetCore.Mvc.Internal.ControllerActionFilter","Order":-2147483648,"Scope":20},{"FilterType":"Microsoft.AspNetCore.Mvc.ViewFeatures.SaveTempDataAttribute","Order":-2147483548,"Scope":10},{"FilterType":"Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter","Order":0,"Scope":10}]
      Parameters : []
      Properties : {}
      RouteValues : {"action":"Index","controller":"Home"}
      Cumulative timing in milliseconds to inspect and format each attribute: Name:0, Constraints:23, AttributeRouteInfo:23, BoundProperties:41, FilterDescriptors:60, Parameters:63, Properties:67, RouteValues:69

... etc ...

Set RouteDebuggingLogger.LogLevel if you must change the LogLevel.

Release Notes

ChangeLog
     --------
     1.0.0.0 Part of Component.As.Service

Version History

Version Downloads Last updated
1.0.0 631 11/4/2018