I am currently using New Relic for my .NET application hosted in Azure and in the New Relic UI I can see all uncaught exceptions that occur in my web app. What I would like to be able to do is log ALL messages and caught exceptions as well so that I can see them in New relic UI alongside the uncaught exceptions (that I currently see now). Has anyone ever done this before and if so can you provide a how-to or maybe some code for how you got this working?
I haven’t been able to find much about this online except for making using the ‘NoticeError’ API call somehow. Is this the right approach or is there another way to accomplish this?
After contacting New Relic support I found out the following:
Therefore you can configure the NoticeError API call to log the highest level exception that gets thrown or a single error message string per web service or page request.
This error will then show-up in the New Relic UI under the Errors section within the Events tab.