This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// usage as usual: console.log('inside coolFunc',this,arguments); | |
if (typeof console !== "undefined") { | |
console.logJack = console.log; | |
window.log={} | |
window.log.history = window.log.history || {}; // store logs to a global history for reference | |
console.log=function(){ | |
var timestamp= (new Date); //create a timestamp of the log | |
var millis=timestamp.getTime(); | |
var readableString=timestamp.toUTCString(); |