I have a web application deployed to azure but I don't know how to log errors.

For testing purposes I have this ForceError method:

public string ForceError()
    throw new Exception("just a test exception");
    return "ok";

Which causes and error like this: "An error occurred while processing your request".

On Azure I enabled all Diagnostic logs like this to a storage container. But the error I forced does not appear in selected storage container.

Do you know what should I do to start logging all the errors from the application?

  • Why are you asking this question here instead of Stackoverflow? – Ramhound Feb 29 '16 at 14:54
  • I wasn't sure. But it isn't really about programming. It is about configuring the server in azure to log the errors – nest Feb 29 '16 at 14:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.