#SmartLogger A JavaScript logging utility that wraps around the web console feature, provided by modern browsers, to ensure that client-side debugging works irrespective of whether a feature is supported in a browser or not.
var logger = com.cre4nslab.SmartLogger;
logger.setLoggingLevel(logger.INFO);
logger.debug("This won't show since DEBUG is lower than INFO");