title: Application Insights' Logs Not Writing to Traces Log
body: <p>I am adding Application Insights (AI) to my web API service by following this page <a href="https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core#prerequisites" rel="nofollow noreferrer">Application Insights Instructions</a>. I managed to get my service to connect to AI and I am able to see when my service preforms a post, get, etc. I also placed log calls through my service, but none of them are being written to my AI's Traces log.</p>
  <p><a href="https://i.stack.imgur.com/o5lKp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/o5lKp.png" alt="Traces Log" /></a></p>
  <p>I made sure to setup my Startup.cs and appsettings.json files to contain the new code needed to run AI in throughout my service, and the logging data need to have AI grab logs debug and up.</p>
  <p><strong>Startup.cs</strong></p>
  <pre><code>public void ConfigureServices(IServiceCollection services)
  {         
      services.AddApplicationInsightsTelemetry();
  }
  </code></pre>
  <p><strong>appsettings.json</strong></p>
  <p><a href="https://i.stack.imgur.com/E8I1O.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E8I1O.png" alt="appsettings.json" /></a></p>
  <p><strong>Logging Example</strong></p>
  <pre><code>public async Task ProcessQueueAsync(dBData dbContext)
  {
      // _logger is of type ILogger&lt;[INSERT CLASS NAME]&gt;
      _logger.LogDebug(&quot;This is a test log by Lotzi11.&quot;);
      await ProcessQueueAsyncSingle(dbContext, CancellationToken.None);
  }
  </code></pre>
  <p>Can someone help me figure out why my logs are not being sent to AI?</p>