1 line
877 B
JavaScript
1 line
877 B
JavaScript
define(["require","exports"],function(e,o){"use strict";o.__esModule=!0;var n;!function(e){e[e.None=0]="None",e[e.Fatal=1]="Fatal",e[e.Error=2]="Error",e[e.Warning=3]="Warning",e[e.Info=4]="Info",e[e.Verbose=5]="Verbose"}(n=o.LogLevel||(o.LogLevel={}));var l=function(){function e(){}return e.fatal=function(e,o){this.Level>=n.Fatal&&this.log(e,o)},e.error=function(e,o){this.Level>=n.Error&&this.log(e,o)},e.warning=function(e,o){this.Level>=n.Warning&&this.log(e,o)},e.info=function(e,o){this.Level>=n.Info&&this.log(e,o)},e.verbose=function(e,o){this.Level>=n.Verbose&&this.log(e,o)},e.log=function(e,o){switch(typeof o){case"undefined":console.log(e+": undefined");break;case"boolean":case"number":case"string":case"symbol":console.log(e+": "+o);break;default:null===o?console.log(e+": null"):(console.log(e+": (object)"),console.log(o))}},e}();l.Level=n.Verbose,o.Log=l}); |