Skip to content

Instantly share code, notes, and snippets.

@longlongjump
Created March 6, 2012 11:13
Show Gist options
  • Save longlongjump/1985711 to your computer and use it in GitHub Desktop.
Save longlongjump/1985711 to your computer and use it in GitHub Desktop.
JS
(function() {
if (window.WDBO !== undefined)
return;
var WBDO = {
log_scope: {"ERROR": "error",
"INFO": "info",
"WARNING": "warn"},
Y: YUI({}),
log: function(msg, type) {
var scope = this.log_scope[type];
Y.log(msg,scope,null);
}
};
WBDO.log.ERROR  = "ERROR";
WBDO.log.INFO = "INFO";
WBDO.log.WARNING = "WARNING";
window.WDBO = WBDO;
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment