1.0.1 • Published 7 years ago
logger-socket.io v1.0.1
logger-socket.io
Simple logger middleware for socket.io.
Installation
Npm
npm install logger-socket.io
Yarn
yarn add logger-socket.io
Support
This library is quite fresh, and maybe has bugs. Write me an email to natashkinsash@gmail.com and I will fix the bug in a few working days.
Quick start
var Logger = require('logger-socket.io');
const options = {};
options.log = function (message) {
console.log(message);
};
io.use(Logger(options));