-
-
Save csharpfritz/fbcd5310e6c2259736ad21a2e19b595a to your computer and use it in GitHub Desktop.
ASP.NET Core Logger configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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