]> git.r.bdr.sh - rbdr/cologne/blob - lib/ext/socket_helper.js
Makes file logger append by default
[rbdr/cologne] / lib / ext / socket_helper.js
1 var bindEvents = function (socket, logger) {
2 socket.on('log', function (logArgs) {
3 logger.log.apply(logger, logArgs);
4 });
5 }
6
7 exports.bindEvents = bindEvents;