Skip to content

Commit 945473e

Browse files
committed
Testing
1 parent 884d3dd commit 945473e

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

samples/LoggingReflectInsight/WebApi.ReflectInsightSample/Startup.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff 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();

samples/LoggingReflectInsight/WebApi.ReflectInsightSample/appsettings.json

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)