Node.js 0.12
util.debuglog()
ponyfill
$ npm install --save debug-log
// example.js var debugLog = require('debug-log')('foo'); debugLog('unicorns & rainbows');
$ node example.js
$ NODE_DEBUG=foo node example.js FOO 3245: unicorns & rainbows
See the util.debuglog()
docs.
MIT © Sindre Sorhus