title: NLog from appsettings with custom appsettings
body: <p>I have a custom appsettings JSON file that I need to be added to the configuration. I'm doing this in the ConfigureAppConfiguration hook called from CreateHostBuilder called from Main in Program.cs. I'm also using NLog.</p>
  <pre><code>public static void Main(string[] args)
  {
      //
      // currently using nlog.config but I want to use appsettings but they haven't been &quot;built&quot; yet
      var logger = NLog.Web.NLogBuilder.ConfigureNLog(&quot;nlog.config&quot;).GetCurrentClassLogger();
      try
      {
          logger.Debug(&quot;init main&quot;);
          CreateHostBuilder(args).Build().Run();
          // could move configurenlog call here, but already called &quot;UseNLog()&quot;
      }
      catch (Exception exception)
      {
          logger.Error(exception, &quot;Stopped program because of exception&quot;);
          throw;
      }
      finally
      {
          NLog.LogManager.Shutdown();
      }
  }
  public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
      Host.CreateDefaultBuilder(args)
      .ConfigureAppConfiguration((hostingContext, config) =&gt; {
                    // add custom config file
                      config  
                          .AddJsonFile(&quot;customsettings.json&quot;, optional:true, reloadOnChange:true);
                  })
        .ConfigureWebHostDefaults(webBuilder =&gt;
        {
            webBuilder.UseStartup&lt;Startup&gt;();
        })
        .ConfigureLogging(logging =&gt;
        {
            logging.ClearProviders();
            logging.SetMinimumLevel(Microsoft.Extensions.Logging.LogLevel.Trace);
        })
        .UseNLog();  // NLog: Setup NLog for Dependency injection
  </code></pre>
  <p>Now I want to use the (combined) appsettings to configure nlog <a href="https://stackoverflow.com/a/56246417/210757">as outlined here</a>, but how do I do this AFTER I've loaded my custom config settings?</p>