Reputation: 153
I am a beginner to Node. Would anyone tell how to handle errors in NodeJS? Also how to define node server to write its logs to a default file instead writing to console.
Upvotes: 0
Views: 2265
Reputation: 2156
Winston is a good npm package for logging data to files or to a database (Mongo).
Upvotes: 0