0.0.20 • Published 9 years ago
sb-error-logger v0.0.20
sb-error-logger
Dependencies: none.
Build-dependencies:
"gulp": "^3.9.1",
"gulp-clean": "^0.3.2",
"gulp-concat": "^2.6.0",
"gulp-uglify": "^2.0.0",
"run-sequence": "^1.2.2"Quick start
npm install --save sb-error-loggerInclude the module as a dependency in your application.
<script src="./node_modules/sb-error-logger/dist/sb-error-logger.js"></script>Inject module in Angular application
angular
.module('app', ['sbErrorLogger']);API
configure(url) // Sets the url the service will post to.setAppId(appId) // Sets the application ID. (Required to save to database.)sendError(errorObject) // Takes an object with "type" and "body" to send to the server.