title: ILogger Logging Doesn't Show Up in Azure Application Insights
body: <p>I'm setting up a new web app to log via Application Insights. I've installed AI, and am seeing all the expected telemetry (server requests, failed requests, etc.) but not logging sent through ILogger. I've looked through all the similar questions I could find on SO, but none resolved my issue.</p>
  <p>I'm using .NET 5 and version 2.17.0 (latest stable) of the Microsoft.ApplicationInsights.AspNetCore nuget package. The connection string and instrumentation key appear correct. I've tried turning on developer mode in TelemetryConfiguration. I'm attempting a log of every level and my code is functionally identical to all the examples I've found.</p>
  <p>Startup.cs/ConfigureServices:
  <a href="https://i.stack.imgur.com/BOEZd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/BOEZd.png" alt="enter image description here" /></a></p>
  <p>Controller:
  <a href="https://i.stack.imgur.com/aVLqw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aVLqw.png" alt="enter image description here" /></a>
  <a href="https://i.stack.imgur.com/3IrqF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3IrqF.png" alt="enter image description here" /></a></p>
  <p>I set the default LogLevel for ApplicationInsights to &quot;Trace&quot;:</p>
  <p><a href="https://i.stack.imgur.com/C29bt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/C29bt.png" alt="enter image description here" /></a></p>
  <p>The Output window in VS shows that when I log, trace telemetry is being sent:</p>
  <p><a href="https://i.stack.imgur.com/lyf8F.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lyf8F.png" alt="VS Output window showing AppTraces telemetry" /></a></p>
  <p>Yet I don't see any logging in Application Insights! I'm absolutely stumped. Any assistance on unraveling this problem would be much appreciated. Thank you!</p>