Simple logger middleware for socket.io.