js-logger
A simple package that provides logging to a file with date and time Steps:
-
run npm i js-log-to-file
-
import the log package anywhere you want to log into a file in your code var log = require('js-log-to-file');
3.log any string anywhere with this line of code log.stringLogger("new log")