title: Serilog not logging in rolling file when deployed to IIS?
body: <pre><code> public Startup(IHostingEnvironment env)
          {
              Log.Logger = new LoggerConfiguration()
              .MinimumLevel
              .Error()
              .WriteTo.RollingFile("logs\\log-{Date}.txt", LogEventLevel.Information) // Uncomment if logging required on text file
              .CreateLogger();
  ...........
  </code></pre>
  
  <p>With above configuration I can see any errors I log in application in logs folder, but only when I run it locally.</p>
  
  <p>However when I deploy the same website on IIS, even logs directory exist in website root level, it doesn't even create file or write any logs to any text file.</p>
  
  <p>Note: logs is the same folder which I have configured in web.config for stderror output and the file is created for stdoutput though:</p>
  
  <p>web.config:</p>
  
  <p><code>&lt;aspNetCore processPath="dotnet" arguments=".\MyApp.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" forwardWindowsAuthToken="false" /&gt;</code></p>
  
  <p>So it cannot be write permissions issue as stdout file is created, but serilog fails to crate file/log errors for some reason.</p>