A simple augmentation of the built-in
console object in the browser. Console.real will log objects as they ware at
the time of logging and not as they are at the time you inspect the log line in the console. See my blog post
console.log() is not a log for details.
build/console.real.min.js file into your web page. Then you can call the following methods on the
console.real object in the same way as regular
console methods: log, info, warn, error.
You can also call
console.real.install() which will replace the console methods with the augmented ones.
Internally every passed argument is deep cloned, which means there are performance penalties for using this.
Should work in ES5 compliant browsers that have: console, JSON, Array#forEach and Array#map objects/methods.
Licensed under MIT. See
LICENSE.md file for details.