Simple logging proxy in Node.js