Simple logging system for node.js and client-side JavaScript