Skip to content

Instantly share code, notes, and snippets.

@ibolmo
Created November 16, 2011 22:48
Show Gist options
  • Select an option

  • Save ibolmo/1371757 to your computer and use it in GitHub Desktop.

Select an option

Save ibolmo/1371757 to your computer and use it in GitHub Desktop.
Simple logging mechanism for jsFiddle.net
ol { margin: 0 1em; padding: 1em; list-style: decimal !important }
li { margin:0 0 1em; }
function log(message, level){
new Element('li', { 'text': message, 'class': 'log ' + (level || 'info')}).inject(log.log);
}
window.addEvent('domready', function(){
log.log = new Element('ol').inject(document.body);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment