title: Where can I find docker container logs for Azure App Service
body: <p>I do have a Docker container running a .net core 2 app.</p>
  
  <p>The logging is configured using this code in <code>Program.cs</code></p>
  
  <pre><code>public static IWebHostBuilder CreateWebHostBuilder(string[] args) =&gt;
      WebHost.CreateDefaultBuilder(args)
          .ConfigureLogging((hostingContext, logging) =&gt;
          {
              logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
              logging.AddConsole();
              logging.AddDebug();
          })
          .UseStartup&lt;Startup&gt;();
  </code></pre>
  
  <p>and the <code>appsettings.json</code> file</p>
  
  <pre><code>{
    "Logging": {
      "LogLevel": {
        "Default": "Information"
      }
    },
  }
  </code></pre>
  
  <p>Logging seems to be Ok, when running Kestrel directly, I can see the logs in the terminal. Same thing, when containerized: the command <code>docker logs</code> shows what I want.</p>
  
  <p>Troubles arise in production, when run in as a container in Azure Web App. I cannot find any consistent docker logs.</p>
  
  <p>I made attempts to visit the Log file via FTP or via the url <code>https://[mysite].scm.azurewebsites.net/api/logs/docker</code> the log files are almost empty for example,
  <code>https://[mysite].scm.azurewebsites.net/api/vfs/LogFiles/2018_09_09_RD0003FF74F63E_docker.log</code>,
  only container starting lines are present
  <a href="https://i.stack.imgur.com/ZfdtN.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/ZfdtN.jpg" alt="enter image description here"></a></p>
  
  <p>Also I do have the same lines in the usual portal interface.</p>
  
  <p>The question is: do docker logs are automatically output in docker.log files in Azure Web App? Is there something that I am missing?</p>