Skip to content

Instantly share code, notes, and snippets.

@kpuputti
Created June 14, 2011 13:00
Show Gist options
  • Save kpuputti/1024838 to your computer and use it in GitHub Desktop.
Save kpuputti/1024838 to your computer and use it in GitHub Desktop.
console.log wrapper
var log = function () {
if (window.console && window.console.log && window.console.log.apply) {
var args = Array.prototype.slice.call(arguments);
args.unshift('My app:');
console.log.apply(console, args);
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment