Search code examples
javascriptc#angularjsstack-traceerror-logging

Stacktrace for angularjs ?


Need some expert advice for client side error handling....

I have a angularjs web application using C# at the backend. I am using Nlog to log backend errors to the database.

I want to find out which tool can be used for logging client side errors to the database. I googled a bit and found various tools like TRACKJS, ROLLBAR..... and these are for javascript error logging...

I found one for angular. STACKTRACE.JS.... i wanted to know what difference will it make if i use TRACKJS instead of STACKTRACE in angular. ??


Solution

  • Stacktrace.js allows you to better debug JavaScript in your own browser, as you develop. Tools like Track.js (and Sentry) are more for production, where errors that your users are experiencing are logged to a server. From there, they are aggregated and you can view reports/get alerts.

    (disclaimer, I'm an engineer at Sentry, which has a 1-line Angular integration. We're also uniquely 100% BSD licensed open source, if you prefer running your own servers.)