title: How to troubleshoot Microsoft Azure WebApp on java? How to access logs?
body: <p>I have a java-application (standard springboot from default tutorial: <a href="https://spring.io/guides/gs/spring-boot-for-azure/" rel="nofollow noreferrer">https://spring.io/guides/gs/spring-boot-for-azure/</a> ) that I "successfuly" deploy to my WebApp (created during deployment) via Eclipse/maven plugin azure-webapp:deploy</p>
  
  <p>Once deployed, files are inside the WebApp, I can see them. If start-up is successful I do get running application, but if it is not - I do not know how to troubleshoot. I don't know where to find error logs, what caused the problem and as consequence, how to solve it.</p>
  
  <p>as an example of how to make it fail, add this line:</p>
  
  <pre><code>throw new RuntimeException("Doomed to fail");
  </code></pre>
  
  <p>I tried enabling logs from "diagnostic logs tab" and expected to see them under LogFiles/Applications but that folder remains empty. </p>
  
  <p>How do I troubleshoot java-application that fails to start in WebApps of Azure?</p>
  
  <p>edit: additional example of Exception to troubleshoot:</p>
  
  <pre><code>public static void main(String[] args) {
      throw new RuntimeException("start failure #21");
      //SpringApplication.run(Application.class, args);
  }
  </code></pre>