UNPKG

@senx/discovery-widgets

Version:

Discovery Widgets Elements

2 lines 1.29 kB
System.register([],(function(o){"use strict";return{execute:function(){var n=function(){function o(o,n){if(n===void 0){n=false}this.isDebug=false;this.className=o.name;this.isDebug=n}o.prototype.log=function(o,n,s){var t=[];t.push("[".concat((new Date).toISOString()," - [").concat(this.className,"] ").concat(n.join(" - ")));t=t.concat(s);switch(o){case e.DEBUG:{if(this.isDebug){console.debug.apply(console,t)}break}case e.ERROR:{console.error.apply(console,t);break}case e.INFO:{console.log.apply(console,t);break}case e.WARN:{console.warn.apply(console,t);break}default:{if(this.isDebug){console.log.apply(console,t)}}}};o.prototype.debug=function(o){var n=[];for(var s=1;s<arguments.length;s++){n[s-1]=arguments[s]}this.log(e.DEBUG,o,n)};o.prototype.error=function(o){var n=[];for(var s=1;s<arguments.length;s++){n[s-1]=arguments[s]}this.log(e.ERROR,o,n)};o.prototype.warn=function(o){var n=[];for(var s=1;s<arguments.length;s++){n[s-1]=arguments[s]}this.log(e.WARN,o,n)};o.prototype.info=function(o){var n=[];for(var s=1;s<arguments.length;s++){n[s-1]=arguments[s]}this.log(e.INFO,o,n)};return o}();o("L",n);var e;(function(o){o[o["DEBUG"]=0]="DEBUG";o[o["ERROR"]=1]="ERROR";o[o["WARN"]=2]="WARN";o[o["INFO"]=3]="INFO"})(e||(e={}))}}})); //# sourceMappingURL=p-33b53463.system.js.map