Currently, I have implemented stacktrace.js to log errors in my Angularjs app like this:
app.factory('$exceptionHandler', ['errorLogService',function (errorLogService) {
return function (exception, cause) {
errorLogService.log(exception.message, cause);
};
}
]);
This logging service records every error that occurs in my app. However, I am wondering if it's possible to select specific types or levels of errors to be logged. It seems like I am capturing every little detail, leading to unnecessary headaches.