user3007385
user3007385

Reputation: 153

Logging NodeJS application in production

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

Answers (1)

user3227295
user3227295

Reputation: 2156

Winston is a good npm package for logging data to files or to a database (Mongo).

Upvotes: 0

Related Questions