tri_inn

tri_inn

  • NA
  • 1.2k
  • 223.5k

Routing settings for Areas in ASP.NET Core

Apr 18 2017 5:35 AM
see the below code
  1. public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)  
  2. {  
  3. loggerFactory.AddConsole(Configuration.GetSection("Logging"));  
  4. loggerFactory.AddDebug();  
  5.   
  6. if (env.IsDevelopment())  
  7. {  
  8. app.UseDeveloperExceptionPage();  
  9. app.UseBrowserLink();  
  10. }  
  11. else  
  12. {  
  13. app.UseExceptionHandler("/Home/Error");  
  14. }  
  15.   
  16. app.UseStaticFiles();  
  17.   

please tell me the meaning of these line of code
  1. loggerFactory.AddConsole(Configuration.GetSection("Logging"));  
  2. loggerFactory.AddDebug();  
  3.   
  4. if (env.IsDevelopment())  
  5. {  
  6. app.UseDeveloperExceptionPage();  
  7. app.UseBrowserLink();  
  8. }  
  9. else  
  10. {  
  11. app.UseExceptionHandler("/Home/Error");  

thanks

Answers (4)