1 | "use strict";
|
2 | var _a;
|
3 | Object.defineProperty(exports, "__esModule", { value: true });
|
4 | exports.compareLevels = exports.LOG_LEVELS = exports.ERROR = exports.WARN = exports.INFO = exports.DEBUG = void 0;
|
5 | exports.DEBUG = 'DEBUG';
|
6 | exports.INFO = 'INFO';
|
7 | exports.WARN = 'WARN';
|
8 | exports.ERROR = 'ERROR';
|
9 | exports.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);
|
15 | function compareLevels(firstLevel, secondLevel) {
|
16 | return exports.LOG_LEVELS[firstLevel] - exports.LOG_LEVELS[secondLevel];
|
17 | }
|
18 | exports.compareLevels = compareLevels;
|
19 |
|
\ | No newline at end of file |