Here Is the basic implementation of Winston logger.
newLogger.js file implements basic functionalities of Winston logger such as:
- Writing logs to a file.
- Showing logs to the console.
dailyRotate.js file implements Winston logger as saving logs daily to a separate file.
Usage:
npm install
node newLogger.js OR node dailyRotate.js