How to set the rolling file name to be unique by process ID
<p>I am trying to have unique name on the log for each one of the processes  running at the same time on a machine. I tried to set the pathFormat in the app.config to something similar to </p>

<pre><code>&lt;add key="MyApp:serilog:write-to:RollingFile.pathFormat" 
     value="..\log\MyApp.{MachineName}-{ThreadId}-{Date}.log" /&gt;
</code></pre>

<p>That didn't work. </p>

<p>Any idea? I can't find anything in the documentation.</p>

<hr>

<p>Being able to write the output from multiple sources would make unnecessary having a log for each process. Since (for now) I am stuck with 1.5, I am providing a specific path while configuring the Rolling file.</p>

<pre><code> new LoggerConfiguration()
     .ReadFrom.AppSettings(AppName)
     .WriteTo.RollingFile(path)
</code></pre>

<p>I just need to provide Machine Name and Thread Id to get a unique log file name.</p>