Peaky.AspNetCore.Debugging
Recommended usage
- Install the NuGet in your ASP.NET Core project
- In your
Startupclass, insideConfigureServices()method, callservices.ConfigureDebugLogging();(optionally, inside an#if DEBUGconditional block) - In your
Startupclass, insideConfigure()method, callapp.UseDebugLogging();
public void ConfigureServices(IServiceCollection services) { #if DEBUG services.ConfigureDebugLogging(); #endif } public void Configure(IApplicationBuilder app, IHostingEnvironment env) { #if DEBUG app.UseDebugLogging(); #endif }