File tree Expand file tree Collapse file tree
samples/LoggingReflectInsight/WebApi.ReflectInsightSample Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,16 +16,18 @@ namespace WebApi.ReflectInsightSample
1616 /// </summary>
1717 public class Startup
1818 {
19+ /// <summary>
20+ /// Initializes a new instance of the <see cref="Startup"/> class.
21+ /// </summary>
22+ /// <param name="env">The env.</param>
1923 public Startup ( IHostingEnvironment env )
2024 {
2125 // Set up configuration sources.
22- var builder = new ConfigurationBuilder ( )
23- . AddJsonFile ( "appsettings.json" )
26+ var builder = new ConfigurationBuilder ( )
2427 . AddJsonFile ( "logging.json" )
2528 . AddEnvironmentVariables ( ) ;
2629
27- Configuration = builder . Build ( ) ;
28- Configuration . ReloadOnChanged ( "logging.json" ) ;
30+ Configuration = builder . Build ( ) ;
2931 }
3032
3133 /// <summary>
@@ -56,8 +58,8 @@ public void ConfigureServices(IServiceCollection services)
5658 /// <param name="loggerFactory">The logger factory.</param>
5759 public void Configure ( IApplicationBuilder app , IHostingEnvironment env , ILoggerFactory loggerFactory )
5860 {
59- loggerFactory . AddReflectInsight ( ) ;
60- // loggerFactory.MinimumLevel = LogLevel.Debug ;
61+ loggerFactory . MinimumLevel = LogLevel . Debug ;
62+ loggerFactory . AddReflectInsight ( "ReflectInsight" ) ;
6163
6264 app . UseIISPlatformHandler ( ) ;
6365 app . UseMvc ( ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments