title: Serilog Configuration Issue .net core 5, How to get serilog to use both appsettings.json and appsetting.development.json
body: <p>This is my config in program.cs (.net core 5, Blazor app)</p>
  <pre><code>public static void Main(string[] args)
          {
              IConfiguration configuration = new ConfigurationBuilder()
                  .AddJsonFile(&quot;appsettings.json&quot;)
                  .Build();
  
              Log.Logger = new LoggerConfiguration()
                  .ReadFrom.Configuration(configuration)
                  .CreateLogger();
              try
              {
                  Log.Information(&quot;Application is Starting.&quot;);
                  CreateHostBuilder(args).Build().Run();
              }
              catch (Exception ex)
              {
                  Log.Fatal(ex, &quot;The application failed to start.&quot;);                
              }
              finally
              {
                  Log.CloseAndFlush();
              }            
          }
  </code></pre>
  <p>Which works ok if all settings used are appsettings.json, but how do I get this to use appsettings.development.json if the settings are different based on environment. Right now it is only reading the appsettings.json which makes sense as the AddJsonFile says appsettings.json, but is there a way to have it recognize appsettings.development.json also to overwrite settings per environment?</p>