title: Where does the log file get written to in .Net Core Logging
body: <p>I am trying to implement logging in a .Net Core API and do not see the log file anywhere.</p>
  
  <p>I'm using Microsoft.Extensions.Logging; and theILogger factory method.</p>
  
  <p>In my Program.cs I have...</p>
  
  <pre><code>   var host = new WebHostBuilder()
             .UseApplicationInsights()
             .UseKestrel()
             .UseContentRoot(Directory.GetCurrentDirectory())
             .UseIISIntegration()
             .UseStartup&lt;Startup&gt;()
             .Build();
  
          host.Run();
  </code></pre>
  
  <p>In my Startup.cs I have this in the Configure method...</p>
  
  <pre><code>        loggerFactory.AddApplicationInsights(app.ApplicationServices, LogLevel.Warning);
          loggerFactory.AddConsole(Configuration.GetSection("Logging"));
          loggerFactory.AddDebug();
          loggerFactory.AddEventSourceLogger();
  </code></pre>
  
  <p>In my appsettings.json I have this...</p>
  
  <pre><code>  "Logging": {
     "IncludeScopes": false,
    "LogLevel": {
    "Default": "Debug",
    "System": "Information",
    "Microsoft": "Information"
     }
    }
  </code></pre>
  
  <p>In my controller, I inject the logger and called the method this way...</p>
  
  <pre><code>   _logger.LogError("ERROR_MESSAGE_STRING");
  </code></pre>
  
  <p>The LogError method is being called with the error string but I do not see the log. I would expect to see the log error file somewhere.  In the bin directory maybe?</p>