-1

I am writing back-end part using Nodejs Express & using mongodb for database so I need to maintain a log for every operation. Which is the best way to do this.

Kinny
  • 47
  • 1
  • 1
  • 10

1 Answers1

1

Here is the link https://www.npmjs.com/package/winston You can implement it as

 var winston = require('winston'); 
 winston.log('info', 'Hello distributed log files!');
 winston.info('Hello again distributed logs');

Hope this will help you

Jayant Patil
  • 1,537
  • 2
  • 11
  • 18