Sha256: 6810269697939c3c273a81c372da510d3169830bf1f01e6d3d273127a4c2c5d6
Contents?: true
Size: 780 Bytes
Versions: 1
Compression:
Stored size: 780 Bytes
Contents
var Logger = new Class() Logger.log = function(param){ Logger.trace(param, 'log') } Logger.info = function(param){ Logger.trace(param, 'info') } Logger.error = function(param){ Logger.trace(param, 'error') } Logger.warn = function(param){ Logger.trace(param, 'warn') } Logger.warning = Logger.warn Logger.trace = function(param, level){ if (console != undefined) { switch (level) { case 'log': if (console.log != undefined) console.log(param) break case 'warn': if (console.warn != undefined) console.warn(param) break case 'info': if (console.info != undefined) console.info(param) break case 'error': if (console.error != undefined) console.error(param) break } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mootools-plus-0.1.1 | vendor/assets/javascripts/mootools-plus/logger.js |