error-logs-db
v0.0.1
Published
This package will store the error logs to database table
Downloads
2
Readme
store-logs-to-database
This package will store the error logs to database table
Install
$ npm install store-logs-to-database
# or
$ yarn add store-logs-to-database
Usage
const storeLogsToDatabase = require("store-logs-to-database");
storeErrorLogToDb(errorCode, errorMessage, errorStack, error.JSON);
Here is the parameters description:
errorCode: Error status code
errorMessage: Error message
errorStack: Error Stack trace
error.JSON: JSON.stringify(error)