title: Serilog ThreadId is always output as 1
body: <p>I have a ThreadId in the outputTemplate but the log always records it as 1. I have several instances of the app running at the same time into the same log and so was hoping I could separate the instances based on the ThreadId.</p>
  <p>Can anyone suggest how to work around this? The ThreadName gets assigned after the app sets up a few things and identifies the area it is running in so is not the best seperator. Also there can be multiple functions run in an area concurrently. Hence the need for the ThreadId</p>
  <pre><code>Log.Logger = new LoggerConfiguration()
              .ReadFrom.Configuration(builder.Build())
              .Enrich.FromLogContext()
              .Enrich.WithThreadId()
              .Enrich.WithThreadName()
              .WriteTo.Console(outputTemplate: &quot;{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}] &lt;{ThreadName}&gt; &lt;{ThreadId}&gt; {Message:lj}{NewLine}{Exception}&quot;)      
              .WriteTo.File(@&quot;.\log\log.txt&quot;, 
                               rollingInterval: RollingInterval.Day, 
                               shared: true,
                               outputTemplate: &quot;{Timestamp:yyyy-MM-dd HH:mm:ss.fff} [{Level:u3}] &lt;{ThreadName}&gt; &lt;{ThreadId}&gt; {Message:lj}{NewLine}{Exception}&quot;)
              .CreateLogger();
  </code></pre>
  <p>Log output</p>
  <pre><code>2021-04-09 06:30:09.059 [INF] &lt;blackstone&gt; &lt;1&gt; Action : Task A
  2021-04-09 06:30:09.059 [INF] &lt;wavell&gt; &lt;1&gt; Action : Task A
  2021-04-09 06:30:09.060 [INF] &lt;forest&gt; &lt;1&gt; Action : Task A
  2021-04-09 06:30:09.130 [INF] &lt;wavell&gt; &lt;1&gt; Loading CentreDetails
  2021-04-09 06:30:09.130 [INF] &lt;forest&gt; &lt;1&gt; Loading CentreDetails
  2021-04-09 06:30:09.132 [INF] &lt;blackstone&gt; &lt;1&gt; Loading CentreDetails
  2021-04-09 06:30:09.560 [INF] &lt;wavell&gt; &lt;1&gt; Loading ParentDetails
  2021-04-09 06:30:09.554 [INF] &lt;blackstone&gt; &lt;1&gt; Loading ParentDetails
  2021-04-09 06:30:09.560 [INF] &lt;forest&gt; &lt;1&gt; Loading ParentDetails
  </code></pre>