1) Install winston
2) Configure the logger output file
3) Link the logger to socket.io using this code:
var io = require('socket.io').listen(server, {
logger : logger
});
var io = require('socket.io').listen(server, {
logger : logger
});
No comments:
Post a Comment