gfk-portal-common
v0.1.0
Published
This package contains common code for all services that will be used in One Panel
Downloads
27
Maintainers
Readme
gfk-portal-common
This package will store the error logs to database table
Install
$ npm install gfk-portal-common
# or
$ yarn add gfk-portal-common
Include
# js
const storeLogsToDatabase = require("gfk-portal-common");
# ts
import storeLogsToDatabase from "gfk-portal-common";
Function usage
storeErrorLogToDb(errorCode, errorMessage, errorStack, error.JSON);
Parameters description:
errorCode: Error status code
errorMessage: Error message
errorStack: Error Stack trace
error.JSON: JSON.stringify(error)