jonseymour / idiomatic-console

A rebindable console API for node.js modules and scripts
http://github.com/jonseymour/idiomatic-console
10 stars 0 forks source link

defer binding initialization to point of use #5

Open jonseymour opened 13 years ago

jonseymour commented 13 years ago

Currently, the streams used in the .DIAGNOSTICS and .DATA object are the streams present at the point that the idiomatic-console module was initialized. It would probably be better to defer this initialization until the point of the rebind &/or the point of use since something, somewhere may have decided to patch process.stdout and process.stderr with alternatives.

Consider the best way to do this.