title: Serilog logger not writing logs to appropriate logs
body: <p>I am trying to write to separate log files depending on where the method is run.</p>
  <p>I have the Serilog configured in my AppStartup class</p>
  <pre><code> Log.Logger = new LoggerConfiguration()
          .ReadFrom.Configuration(builder.Build())
          .Enrich.FromLogContext()
          .WriteTo.Logger(lc =&gt; lc
              .Filter.ByIncludingOnly(Matching.FromSource(&quot;DataProcessing.DataManagers.HistoricalEquityDataManager&quot;))
              .WriteTo.File(LogFileTemplate.HistoricalDataLogFileTemplate.Replace(&quot;{machineuser}&quot;, Environment.UserName)))
          .WriteTo.File(LogFileTemplate.TradeActivityLogFileTemplate.Replace(&quot;{machineuser}&quot;, Environment.UserName))
          .WriteTo.Seq(&quot;http://localhost:5341&quot;)
              .CreateBootstrapLogger();
  </code></pre>
  <p>When methods from the class DataProcessing.DataManagers.HistoricalEquityDataManager are run I want them to log to a different file (noted in the config builder).</p>
  <p>The logs from those methods are still writing to the file in the file noted in this codeline. They ARE NOT being run from the filtered logger.</p>
  <pre><code>.WriteTo.File(LogFileTemplate.TradeActivityLogFileTemplate.Replace(&quot;{machineuser}&quot;, Environment.UserName))
  </code></pre>