Skip to content

Instantly share code, notes, and snippets.

@csharpfritz csharpfritz/startup.cs Secret
Created Jun 27, 2016

Embed
What would you like to do?
ASP.NET Core Logger configuration
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
loggerFactory.AddDebug();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.