Logging with winston-mongodb and express-winston Logging with winston-mongodb and express-winston mongodb mongodb

Logging with winston-mongodb and express-winston


I have the same issue, seems that the winston-mongodb log function takes different argument ( info as the meta object to be logged into the mongo database, cb is the callback function if you want to see the result after the log operation on the mongo done)

Solution :install the winston-mongodb package with the version no 3.0.0

npm install winston-mongodb@3.0.0 --save

reference to the github issue cb is not a function