-
-
Save sonukapoor/1e742b200e87b0cec59906126baa45b2 to your computer and use it in GitHub Desktop.
Revisions
-
jp pincheira created this gist
May 18, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ function showDate(){ var date = new Date(), str = date.toUTCString(); return str; } var orig = console.log; console.log = function() { var msgs = []; while(arguments.length) { msgs.push("[" + showDate() + "]" + ': ' + [].shift.call(arguments)); } orig.apply(console, msgs); };