title: ASP.Net Core logging file not written in Linux environment
body: <p>I have an ASP.Net Core (.Net Core 1.1.1) application,
  which using built-in logger and <code>Serilog.Extensions.Logging.File</code> for writing the log to file, it works well on my macOS development environment but CentOS environment.</p>
  
  <p>The appsetting json:</p>
  
  <pre><code>"Logging": {
      "IncludeScopes": false,
      "PathFormat": "Logs/log-{Date}.log",
      "RetainedFileCountLimit": 7,
      "LogLevel": {
          "Default": "Warning"
      }
  }
  </code></pre>
  
  <p>Startup.cs: </p>
  
  <pre><code>public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) {
          loggerFactory
              .AddConsole(Configuration.GetSection("Logging"))
              .AddFile(Configuration.GetSection("Logging"))
              .AddDebug();
  </code></pre>
  
  <p>The <code>Logs</code> directory not exists, I have check following:</p>
  
  <ul>
  <li>application folder owner is <code>centos</code>  </li>
  <li>application services <code>User</code> is <code>centos</code>, same as folder owner</li>
  <li>logs is available on <code>journalctl</code></li>
  <li>no error message</li>
  </ul>
  
  <p>Am I missing something?</p>