Skip to content

Instantly share code, notes, and snippets.

@csharpfritz
Created June 27, 2016 11:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csharpfritz/fbcd5310e6c2259736ad21a2e19b595a to your computer and use it in GitHub Desktop.
Save csharpfritz/fbcd5310e6c2259736ad21a2e19b595a to your computer and use it in GitHub Desktop.
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