Dead simple jQuery log function

Works with IE

by jamesdh

JavaScript

$.log = $.fn.log = function (msg) {
  if (window.console && window.console.log) {
    console.log("%s: %o", msg, this);
  }
  return this;
};