Skip to content

Instantly share code, notes, and snippets.

@ken39arg
Created April 21, 2011 06:14
Show Gist options
  • Save ken39arg/933833 to your computer and use it in GitHub Desktop.
Save ken39arg/933833 to your computer and use it in GitHub Desktop.
JSでログの制御ってこれで良いのかな?
var IS_DEV = true;
// logger
var console = window.console;
if (IS_DEV === false || !console) {
console = {
log: function(){},
debug: function(){},
info: function(){},
warn: function(){},
error: function(){},
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment