how to print the console logs to a file using winston logger code example
Example: winston logger node js
const info = { level: 'info', // Level of the logging message message: 'Hey! Log something?' // Descriptive message being logged.};