1.1.3 • Published 6 years ago
error-logging v1.1.3
Frontend Exception Tracker
This project is a simple NPM package to track and send error(s) logs that occour on client side.
Usage
- install the package
yarn add error-logging
import the package
import errorlogging from 'error-logging
create new instance with the
POSTendpoint to send error logs toconst exceptionTracker = new errorlogging('/v1/save_error');
- methods available
exceptionTracker.startTracking()- Start tracking and sending errors to the mentioned POST API endpoint.exceptionTracker.stopTracking()- Stop tracking and sending errors to the mentioned POST API endpoint.