Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

loosebits/angular-exception-post

Open more actions menu

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.