Winston is a popular library for logging within NodeJS applications because it allows you to easily target 3rd party logging solutions, including Papertrail.
Papertrail is hosted logging solution which is easy to get started with and can be invaluable for recording important information as well as alerting when specific errors occur within your NodeJS applications.
please update the files
please update the wiston version and update the code
code is not working on current winston version