Suppose I want to include some calls to console.log
for some legitimate production reason, say for something like a unit test harness. Obviously I would not want th
Paul Irish has a nice light wrapper/replacement for console.log()
.
http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/
Advantages:
log()
or window.log()
.