Skip to content

angular module to log js errors to server, nodejs server-side example

Notifications You must be signed in to change notification settings

miramardesign/angular-log-js-to-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Frontend logger log to server

Log frontend js errors to server

Sends js error messages to the server endpoint at /api/log in order to debug user errors.

Installation

Install with bower (or download/clone).

bower install angular-log-js-to-server --save

Import the required files to your html.

<script src="/bower_components/log-to-server-angular/dist/log-to-server.angular.js"></script>

Usage

var app = angular.module('angularApp', [
    'logToServer'
]);

See examples/index.html and examples/ready.js for more options.

Options


Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-, as in data-source="".

If you are using jQuery in your application, note that camel case attributes such as data-minLength should be formatted as data-min-length.

Name Type Default Description
apiUrl string /api/log-js,
the url end point to point to send the error report.

dependencies: jQuery, Angular 1.x


About

angular module to log js errors to server, nodejs server-side example

Resources

Stars

Watchers

Forks

Packages

No packages published