title: ASP.NET web application in Azure - How to log errors?
body: <p>I have a web application deployed to azure but I don't know how to log errors.</p>
  
  <p>For testing purposes I have this ForceError method:</p>
  
  <pre><code>public string ForceError()
  {
      throw new Exception("just a test exception");
      return "ok";
  }
  </code></pre>
  
  <p>Which causes and error like this:
  <a href="https://i.stack.imgur.com/DcTZZ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DcTZZ.png" alt="enter image description here"></a></p>
  
  <p>On Azure I enabled all Diagnostic logs like this:
  <a href="https://i.stack.imgur.com/bz1dY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/bz1dY.png" alt="enter image description here"></a></p>
  
  <p>But the error I forced does not appear in selected storage container.</p>
  
  <p>Do you know what should I do to start logging all the errors from the application?</p>