title: Serilog WriteTo.File with C# UWP
body: <p>I am writing an uwp app with C# and I would like to use serilog to write logfiles.
  When I do it in a .NET Core Console application it creates the file with the wanted content.</p>
  
  <p>In the uwp I can show the log messages on the GUI, but no log file is created (yes, I have broadFileSystemAccess).</p>
  
  <p>My code:</p>
  
  <pre><code>Log.Logger = new LoggerConfiguration().WriteTo.File("log.txt").CreateLogger();
  Log.Debug("TEST");
  Log.CloseAndFlush();
  </code></pre>
  
  <p>I would expect that it creates log.txt file in the directory which can be get with <code>Windows.Storage.ApplicationData.Current.LocalFolder</code> like</p>
  
  <pre><code>storageFolder.CreateFileAsync("test.txt", CreationCollisionOption.ReplaceExisting);
  </code></pre>
  
  <p>does.</p>
  
  <p>Can anyone tell me what I have to change or to consider to log to a file with serilog in my uwp app?</p>