title: I cannot see logs in Azure Log Stream
body: <p>I am trying to log information of my ASP.NET Core App and I cannot find a way to display the loogs in Azure Log Stream. The application successfully logs when I debug in Visual Studio but I do not see anything when I publish to Azure.</p>
  
  <p>This is how my App Service Logs looks like:
  <a href="https://i.stack.imgur.com/9T3f6.png" rel="nofollow noreferrer">App Service Logs</a></p>
  
  <p>I have tried to log using different methods that I have found in Microsoft documentation and none has worked.</p>
  
  <pre><code>    [HttpGet]
      public string Index()
      {
          Trace.TraceInformation("You are in the face recognition controller. Trace");
          _logger.LogInformation("You are in the face recognition controller. Logger");
          return "You are in the face recognition controller";
      }
  </code></pre>
  
  <p>Controller constructor:</p>
  
  <pre><code>    private readonly ILogger _logger;
      public FaceRecognitionController(ILoggerFactory loggerFactory)
      {
          _logger = loggerFactory.CreateLogger&lt;FaceRecognitionController&gt;();
      }
  </code></pre>
  
  <p>Configure method:</p>
  
  <pre><code>public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
      {
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
  
          loggerFactory.CreateLogger("console");
          loggerFactory.CreateLogger("debug");
  
          app.UseHttpsRedirection();
  
          app.UseRouting();
  
          app.UseAuthorization();
  
          app.UseEndpoints(endpoints =&gt;
          {
              endpoints.MapControllers();
          });
      }
  </code></pre>
  
  <p>Does anyone know what I can do?</p>
  
  <p>Log Stream screenshot:
  <a href="https://i.stack.imgur.com/RCB37.png" rel="nofollow noreferrer">enter image description here</a></p>