error-logging
v1.1.3
Published
Package to catch console errors
Downloads
5
Readme
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
POST
endpoint 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.