Last active
December 15, 2015 11:29
-
-
Save dotnetCarpenter/5252915 to your computer and use it in GitHub Desktop.
Simple logger for browsers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getLogger() { | |
var out = document.createElement("ol"); | |
document.body.appendChild(out); | |
return function log(msg) { | |
out.innerHTML += "<li>" + msg + "</li>"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: