Extending Node.JS console object with persistent logging