Skip to content

Instantly share code, notes, and snippets.

@shishkin
Created December 7, 2011 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shishkin/1442705 to your computer and use it in GitHub Desktop.
Save shishkin/1442705 to your computer and use it in GitHub Desktop.
jsfiddle-log.js
$(function(){
$('<pre id="results"></pre>').appendTo('body');
window.log = function(msg) {
if (typeof msg !== 'string') {
msg = JSON.stringify(msg, null, 2);
}
$('#results').append(msg + '\n');
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment