Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save sonukapoor/1e742b200e87b0cec59906126baa45b2 to your computer and use it in GitHub Desktop.

Select an option

Save sonukapoor/1e742b200e87b0cec59906126baa45b2 to your computer and use it in GitHub Desktop.

Revisions

  1. jp pincheira created this gist May 18, 2012.
    18 changes: 18 additions & 0 deletions gistfile1.js
    Original 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);
    };