store-logs-to-database
v1.1.2
Published
This package will store the error logs to database table
Downloads
3
Maintainers
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)