Skip to content

Instantly share code, notes, and snippets.

@josephwegner
Created August 7, 2012 15:23
Show Gist options
  • Save josephwegner/3286335 to your computer and use it in GitHub Desktop.
Save josephwegner/3286335 to your computer and use it in GitHub Desktop.
Safe console.log
if(console.log && !logsOn) { //If console.log exists, override it with you safe log check
console.log = function() { };
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment