0.1.1 • Published 6 years ago
express-winston-log-util v0.1.1
Express Winston Log Util
This is a simple utility for logging the output into an trace.log and error.log.
Simply import the library and call a logEvent method.
Install
npm install express-winston-log-util --save
Usage
let logUtil = require('express-winston-log-util');
logUtil.logEvent("MyClass","MyMethod",JSONObject);
logUtil.logError("Error message goes here");
A trace.log file will be generated into the root directory of the project