I am using an automation framework using protractor and javascript. We are using winston for logging .But with the configuration i have i am only able to create a single .log file which keeps appending.
var winston = require('winston');
winston.remove(winston.transports.Console);
winston.add(winston.transports.Console, { timestamp: true });
winston.add(winston.transports.File, { filename: 'test-basic.log' });
module.exports = winston;
What i want is .log file for each of the individual test case like testcase1.log, testcase2.log and creating every time newly using the date time as appender. Is there a way i can do this?