flatiron/winston — Issue #107: Question - Access logging from multiple files when using an instance
Author: azare
Created: 2012-02-27 16:02:05+00:00
State: open

I saw in the readme how to access a logger from multiple files, but I'm using an instance and can't get it to work.
Is this possible?

Here is an example of my code:
logger = new (winston.Logger)({
transports: [
new winstonmongodb( { db: 'xxxxxxx', host: 'staff.mongohq.com', port: 10009, username: 'xxxxxx', password: 'xxxxxx' } )
new winston.transports.Console
new winston.transports.File({ filename: 'logfile.log' })
]
exceptionHandlers: [
new winston.transports.File({ filename: 'exceptions.log' })
]
})