UNPKG

@ncodedcode/ncode_react_lib

Version:

ncode react application context library

37 lines 1.26 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NCLog = exports.NCLogLevel = void 0; var NCLogLevel; (function (NCLogLevel) { NCLogLevel[NCLogLevel["Verbose"] = 0] = "Verbose"; NCLogLevel[NCLogLevel["Debug"] = 1] = "Debug"; NCLogLevel[NCLogLevel["Warning"] = 2] = "Warning"; NCLogLevel[NCLogLevel["Error"] = 3] = "Error"; })(NCLogLevel = exports.NCLogLevel || (exports.NCLogLevel = {})); var NCLog = (function () { function NCLog() { } NCLog.setLogLevel = function (level) { NCLog.v = function () { }; NCLog.d = function () { }; NCLog.w = function () { }; NCLog.assert = function () { }; if (NCLogLevel.Verbose >= level) NCLog.v = console.info; if (NCLogLevel.Debug >= level) NCLog.d = console.log; if (NCLogLevel.Debug >= level) NCLog.assert = console.assert; if (NCLogLevel.Warning >= level) NCLog.w = console.warn; }; NCLog.v = console.info; NCLog.d = console.log; NCLog.w = console.warn; NCLog.e = console.error; NCLog.assert = console.assert; NCLog.trace = console.trace; return NCLog; }()); exports.NCLog = NCLog; //# sourceMappingURL=NCLog.js.map