I have a use case where i have two file streams attached to a logger, to write to two seperate files.
*
logger = bunyan.addStream({
name : 'stream1',
type : 'rotating-file',
period : '1d',
path : 'file1'
});
logger = bunyan.addStream({
name : 'stream2'
type : 'rotating-file',
period : '1d',
path : 'file2'
});
*
Can i user something like this ???
logger.info("Hello Brother", {stream: 'stream1'}) //to write the log into file1
logger.info("I am good", {stream: 'stream2'}) // to write the log into file2