by Jay Moretti
It's often very easy to get lost in a sea of console.log calls. Sometimes you forget to clear them before sending the project to production. Sometimes you need more than a simple output. That's the reason why this console.log extension exists.
console.log(arguments);
window.logger.debugOn(true | false); // turns log output on/off globally
window.logger.isCompiled(true | false); // outputs function where the log happened instead of file where the log happened.
var object = {
prop1 : [0, 1, 2, 3, 4],
prop2 : "This is a String",
prop3 : {"prop1" : "meh"}
};
console.log(object.prop1, object.prop2, object.prop3);
Builds are created by uglyfying and merging /src/libs/stacktrace.js and /src/utils/log/log.js together using Uglify-js2
published under the MIT license