ng-anomaly
Exception handler decorator to post exceptions on the server. Depends on a minimal Ajax library for making XHR requests to the server.
Installation
NPM
$ npm i ng-anomaly
Usage
Adding module in dependencies
angular;
anomalyProvider
Configuring logger via angular ; { anomalyProvider; }
Configuring the above would HTTP POST
all exceptions to /logs
, make sure you have it setup in your API project.
Provider functions
setExceptionLogUrl
: url to POST exceptions to
TODO
- Release on bower package manager
- Add headers support
- Write tests