sh-frontend-monitoring
v0.0.9
Published
A simple JavaScript error logging plugin that works in all environments (browser, Node.js, and modern frameworks).
Downloads
16
Readme
Error Logger Plugin
A simple JavaScript error logging plugin that works in all environments (browser, Node.js, and modern frameworks).
Installation
npm install wb-frontend-monitoring
import errorLogger from 'wb-frontend-monitoring';
errorLogger.init({
includeWarn: false //not required area,
# callback working when detected error or warning
callback: function (errorDetails) {
console.log("Detected error or warning:", errorDetails);
# your api
},
});