Is it possible to configure winston-mongodb to log to multiple collections simultaneously?
var winston = require('winston');
require('winston-mongodb').MongoDB;
var logger = new winston.Logger({
level: 'info',
transports: [
new(winston.transports.MongoDB)({
db : 'mongodb://xxxx'
})
],
capped : true, // defaults to false
})
The current setup logs everything to a default collection named log
, but I am looking for a way to create separate collections for each module. This will help me pinpoint and investigate issues specific to different domains more effectively.