Skip to content

loosebits/angular-exception-post

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-exception-post

An angular module to post JS errors to the server. Uses stacktrace to generate the stacktrace to be posted to the server. Can be configured with a debounce time so a slew of errors aren't posted at once. Based on code from http://engineering.talis.com/articles/client-side-error-logging/

Requirements

  • AngularJS
  • stacktrace

Usage

angular.module('myApp',['loosebits.client.exception.post'])
  .config(['errorLogServiceProvider', function(errorLogServiceProvider) {
    errorLogServiceProvider
      .onSuccess('exceptionHandler') //Service called 
      .debounce(1000)
      .post-url('client-error');
}])  

About

An angular module to post JS errors to the server

Resources

Stars

Watchers

Forks

Packages

No packages published