Start using logger.js

It needs a lot of work, but it's the right idea.