I was trying to use winston for logging, but I am seeing that if I want to get the data with 2 arg, then I am getting the log, but if I want to get 3 arguments, then I am not getting the data,
Ex:
logger = new (winston.Logger)({
transports: [
new (winston.transports.Console)({colorize : true, timestamp:true}),
]
});
Now trying to get the log as below:
1. logger.info("We got the data %s, %d", data, port);
O/P: We got the data %s, %d => No data and port value
2. logger.info("We got the data, port", data, port);
O/P: We got the data, port => No data and port value
3. logger.info("We got the data", data);
===> Getting the data correctly.
Can you please let me know what I was missing in 1, 2 or does winston not log the data in case 1 & 2 really?