UNPKG

647 BJavaScriptView Raw
1"use strict";
2var _a;
3Object.defineProperty(exports, "__esModule", { value: true });
4exports.compareLevels = exports.LOG_LEVELS = exports.ERROR = exports.WARN = exports.INFO = exports.DEBUG = void 0;
5exports.DEBUG = 'DEBUG';
6exports.INFO = 'INFO';
7exports.WARN = 'WARN';
8exports.ERROR = 'ERROR';
9exports.LOG_LEVELS = (_a = {},
10 _a[exports.DEBUG] = 1,
11 _a[exports.INFO] = 2,
12 _a[exports.WARN] = 3,
13 _a[exports.ERROR] = 4,
14 _a);
15function compareLevels(firstLevel, secondLevel) {
16 return exports.LOG_LEVELS[firstLevel] - exports.LOG_LEVELS[secondLevel];
17}
18exports.compareLevels = compareLevels;
19//# sourceMappingURL=logLevels.js.map
\No newline at end of file