ng2-logger 13.1.1 → 13.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +206 -206
- package/app/index.d.ts +4 -4
- package/app/index.js +19 -19
- package/app/ng2-logger.component.d.ts +5 -5
- package/app/ng2-logger.component.js +33 -33
- package/app/ng2-logger.module.d.ts +2 -2
- package/app/ng2-logger.module.js +30 -30
- package/browser/README.md +24 -24
- package/browser/esm2020/lib/backend-logging.mjs +91 -91
- package/browser/esm2020/lib/display.mjs +96 -96
- package/browser/esm2020/lib/helpers.mjs +1 -1
- package/browser/esm2020/lib/index.mjs +5 -5
- package/browser/esm2020/lib/level.mjs +30 -30
- package/browser/esm2020/lib/log.mjs +163 -163
- package/browser/esm2020/lib/logger.mjs +234 -234
- package/browser/esm2020/ng2-logger.mjs +4 -4
- package/browser/esm2020/public-api.mjs +1 -1
- package/browser/fesm2015/ng2-logger.mjs +512 -512
- package/browser/fesm2020/ng2-logger.mjs +512 -512
- package/browser/lib/backend-logging.d.ts +4 -4
- package/browser/lib/display.d.ts +4 -4
- package/browser/lib/helpers.d.ts +1 -1
- package/browser/lib/index.d.ts +5 -5
- package/browser/lib/level.d.ts +21 -21
- package/browser/lib/log.d.ts +25 -25
- package/browser/lib/logger.d.ts +81 -81
- package/browser/ng2-logger.d.ts +5 -5
- package/browser/public-api.d.ts +1 -1
- package/client/README.md +24 -24
- package/client/esm2020/lib/backend-logging.mjs +91 -91
- package/client/esm2020/lib/display.mjs +96 -96
- package/client/esm2020/lib/helpers.mjs +1 -1
- package/client/esm2020/lib/index.mjs +5 -5
- package/client/esm2020/lib/level.mjs +30 -30
- package/client/esm2020/lib/log.mjs +163 -163
- package/client/esm2020/lib/logger.mjs +234 -234
- package/client/esm2020/ng2-logger.mjs +4 -4
- package/client/esm2020/public-api.mjs +1 -1
- package/client/fesm2015/ng2-logger.mjs +512 -512
- package/client/fesm2020/ng2-logger.mjs +512 -512
- package/client/lib/backend-logging.d.ts +4 -4
- package/client/lib/display.d.ts +4 -4
- package/client/lib/helpers.d.ts +1 -1
- package/client/lib/index.d.ts +5 -5
- package/client/lib/level.d.ts +21 -21
- package/client/lib/log.d.ts +25 -25
- package/client/lib/logger.d.ts +81 -81
- package/client/ng2-logger.d.ts +5 -5
- package/client/public-api.d.ts +1 -1
- package/index.d.ts +1 -1
- package/index.js +5 -5
- package/lib/backend-logging.d.ts +4 -4
- package/lib/backend-logging.js +115 -115
- package/lib/display.d.ts +4 -4
- package/lib/display.js +104 -104
- package/lib/helpers.d.ts +1 -1
- package/lib/helpers.js +6 -6
- package/lib/index.d.ts +5 -5
- package/lib/index.js +9 -9
- package/lib/level.d.ts +21 -21
- package/lib/level.js +35 -35
- package/lib/log.d.ts +25 -25
- package/lib/log.js +197 -197
- package/lib/logger.d.ts +81 -81
- package/lib/logger.js +340 -340
- package/package.json +3 -3
- package/package.json_devDependencies.json +184 -184
- package/package.json_tnp.json5 +47 -47
- package/tmp-environment.json +36 -35
- package/websql/README.md +24 -24
- package/websql/esm2020/lib/backend-logging.mjs +91 -91
- package/websql/esm2020/lib/display.mjs +96 -96
- package/websql/esm2020/lib/helpers.mjs +1 -1
- package/websql/esm2020/lib/index.mjs +5 -5
- package/websql/esm2020/lib/level.mjs +30 -30
- package/websql/esm2020/lib/log.mjs +163 -163
- package/websql/esm2020/lib/logger.mjs +234 -234
- package/websql/esm2020/ng2-logger.mjs +4 -4
- package/websql/esm2020/public-api.mjs +1 -1
- package/websql/fesm2015/ng2-logger.mjs +512 -512
- package/websql/fesm2020/ng2-logger.mjs +512 -512
- package/websql/lib/backend-logging.d.ts +4 -4
- package/websql/lib/display.d.ts +4 -4
- package/websql/lib/helpers.d.ts +1 -1
- package/websql/lib/index.d.ts +5 -5
- package/websql/lib/level.d.ts +21 -21
- package/websql/lib/log.d.ts +25 -25
- package/websql/lib/logger.d.ts +81 -81
- package/websql/ng2-logger.d.ts +5 -5
- package/websql/public-api.d.ts +1 -1
package/lib/display.js
CHANGED
|
@@ -1,104 +1,104 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Display = void 0;
|
|
4
|
-
//#endregion
|
|
5
|
-
var level_1 = require("./level");
|
|
6
|
-
var tnp_core_1 = require("tnp-core");
|
|
7
|
-
var backend_logging_1 = require("./backend-logging");
|
|
8
|
-
//#region @backend
|
|
9
|
-
var chalk_1 = require("chalk");
|
|
10
|
-
//#endregion
|
|
11
|
-
var Display = /** @class */ (function () {
|
|
12
|
-
function Display() {
|
|
13
|
-
}
|
|
14
|
-
Display.msg = function (message, params, moduleName, moduleColor, level, moduleWidth, isProductionMode) {
|
|
15
|
-
if (isProductionMode) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
;
|
|
19
|
-
var color = 'gray';
|
|
20
|
-
if (level === level_1.Level.INFO) {
|
|
21
|
-
color = 'deepskyblue';
|
|
22
|
-
}
|
|
23
|
-
if (level === level_1.Level.ERROR) {
|
|
24
|
-
color = 'red';
|
|
25
|
-
}
|
|
26
|
-
if (level === level_1.Level.WARN) {
|
|
27
|
-
color = 'orange';
|
|
28
|
-
}
|
|
29
|
-
if (moduleWidth) {
|
|
30
|
-
var diff = moduleWidth - moduleName.length;
|
|
31
|
-
if (diff > 0) {
|
|
32
|
-
for (var i = 0; i < diff; i++) {
|
|
33
|
-
moduleName += ' ';
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
/* */
|
|
38
|
-
/* */
|
|
39
|
-
/* */
|
|
40
|
-
/* */
|
|
41
|
-
/* */
|
|
42
|
-
/* */
|
|
43
|
-
/* */
|
|
44
|
-
/* */
|
|
45
|
-
/* */
|
|
46
|
-
/* */
|
|
47
|
-
/* */
|
|
48
|
-
/* */
|
|
49
|
-
/* */
|
|
50
|
-
/* */
|
|
51
|
-
/* */
|
|
52
|
-
/* */
|
|
53
|
-
/* */
|
|
54
|
-
/* */
|
|
55
|
-
/* */
|
|
56
|
-
/* */
|
|
57
|
-
/* */
|
|
58
|
-
/* */
|
|
59
|
-
/* */
|
|
60
|
-
/* */
|
|
61
|
-
/* */
|
|
62
|
-
/* */
|
|
63
|
-
/* */
|
|
64
|
-
/* */
|
|
65
|
-
/* */
|
|
66
|
-
/* */
|
|
67
|
-
/* */
|
|
68
|
-
/* */
|
|
69
|
-
/* */
|
|
70
|
-
/* */
|
|
71
|
-
/* */
|
|
72
|
-
/* */
|
|
73
|
-
/* */
|
|
74
|
-
/* */
|
|
75
|
-
/* */
|
|
76
|
-
/* */
|
|
77
|
-
/* */
|
|
78
|
-
/* */
|
|
79
|
-
/* */
|
|
80
|
-
/* */
|
|
81
|
-
/* */
|
|
82
|
-
/* */
|
|
83
|
-
/* */
|
|
84
|
-
/* */
|
|
85
|
-
//#region @backend
|
|
86
|
-
if (tnp_core_1.Helpers.isNode) {
|
|
87
|
-
var a1 = chalk_1.default.bgHex(moduleColor)(global.hideLog ? '' : "".concat(chalk_1.default.black(moduleName)));
|
|
88
|
-
var p = params;
|
|
89
|
-
if (typeof message === 'string') {
|
|
90
|
-
a1 = a1 + chalk_1.default.keyword(color)(global.hideLog ? '' : ' [') + chalk_1.default.dim(message)
|
|
91
|
-
+ chalk_1.default.keyword(color)(global.hideLog ? '' : '] ');
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
p = [message].concat(params);
|
|
95
|
-
}
|
|
96
|
-
(0, backend_logging_1.consoleLog)(a1, level);
|
|
97
|
-
(0, backend_logging_1.displayParams)(p, level);
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
};
|
|
101
|
-
return Display;
|
|
102
|
-
}());
|
|
103
|
-
exports.Display = Display;
|
|
104
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Display = void 0;
|
|
4
|
+
//#endregion
|
|
5
|
+
var level_1 = require("./level");
|
|
6
|
+
var tnp_core_1 = require("tnp-core");
|
|
7
|
+
var backend_logging_1 = require("./backend-logging");
|
|
8
|
+
//#region @backend
|
|
9
|
+
var chalk_1 = require("chalk");
|
|
10
|
+
//#endregion
|
|
11
|
+
var Display = /** @class */ (function () {
|
|
12
|
+
function Display() {
|
|
13
|
+
}
|
|
14
|
+
Display.msg = function (message, params, moduleName, moduleColor, level, moduleWidth, isProductionMode) {
|
|
15
|
+
if (isProductionMode) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
;
|
|
19
|
+
var color = 'gray';
|
|
20
|
+
if (level === level_1.Level.INFO) {
|
|
21
|
+
color = 'deepskyblue';
|
|
22
|
+
}
|
|
23
|
+
if (level === level_1.Level.ERROR) {
|
|
24
|
+
color = 'red';
|
|
25
|
+
}
|
|
26
|
+
if (level === level_1.Level.WARN) {
|
|
27
|
+
color = 'orange';
|
|
28
|
+
}
|
|
29
|
+
if (moduleWidth) {
|
|
30
|
+
var diff = moduleWidth - moduleName.length;
|
|
31
|
+
if (diff > 0) {
|
|
32
|
+
for (var i = 0; i < diff; i++) {
|
|
33
|
+
moduleName += ' ';
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
/* */
|
|
38
|
+
/* */
|
|
39
|
+
/* */
|
|
40
|
+
/* */
|
|
41
|
+
/* */
|
|
42
|
+
/* */
|
|
43
|
+
/* */
|
|
44
|
+
/* */
|
|
45
|
+
/* */
|
|
46
|
+
/* */
|
|
47
|
+
/* */
|
|
48
|
+
/* */
|
|
49
|
+
/* */
|
|
50
|
+
/* */
|
|
51
|
+
/* */
|
|
52
|
+
/* */
|
|
53
|
+
/* */
|
|
54
|
+
/* */
|
|
55
|
+
/* */
|
|
56
|
+
/* */
|
|
57
|
+
/* */
|
|
58
|
+
/* */
|
|
59
|
+
/* */
|
|
60
|
+
/* */
|
|
61
|
+
/* */
|
|
62
|
+
/* */
|
|
63
|
+
/* */
|
|
64
|
+
/* */
|
|
65
|
+
/* */
|
|
66
|
+
/* */
|
|
67
|
+
/* */
|
|
68
|
+
/* */
|
|
69
|
+
/* */
|
|
70
|
+
/* */
|
|
71
|
+
/* */
|
|
72
|
+
/* */
|
|
73
|
+
/* */
|
|
74
|
+
/* */
|
|
75
|
+
/* */
|
|
76
|
+
/* */
|
|
77
|
+
/* */
|
|
78
|
+
/* */
|
|
79
|
+
/* */
|
|
80
|
+
/* */
|
|
81
|
+
/* */
|
|
82
|
+
/* */
|
|
83
|
+
/* */
|
|
84
|
+
/* */
|
|
85
|
+
//#region @backend
|
|
86
|
+
if (tnp_core_1.Helpers.isNode) {
|
|
87
|
+
var a1 = chalk_1.default.bgHex(moduleColor)(global.hideLog ? '' : "".concat(chalk_1.default.black(moduleName)));
|
|
88
|
+
var p = params;
|
|
89
|
+
if (typeof message === 'string') {
|
|
90
|
+
a1 = a1 + chalk_1.default.keyword(color)(global.hideLog ? '' : ' [') + chalk_1.default.dim(message)
|
|
91
|
+
+ chalk_1.default.keyword(color)(global.hideLog ? '' : '] ');
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
p = [message].concat(params);
|
|
95
|
+
}
|
|
96
|
+
(0, backend_logging_1.consoleLog)(a1, level);
|
|
97
|
+
(0, backend_logging_1.displayParams)(p, level);
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
};
|
|
101
|
+
return Display;
|
|
102
|
+
}());
|
|
103
|
+
exports.Display = Display;
|
|
104
|
+
//# sourceMappingURL=/Users/dariusz/projects/npm/ng2-logger/tmp-bundle-release/bundle/project/ng2-logger/bundle-nocutsrc/lib/display.js.map
|
package/lib/helpers.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Helpers } from 'tnp-config';
|
|
1
|
+
export { Helpers } from 'tnp-config';
|
package/lib/helpers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Helpers = void 0;
|
|
4
|
-
var tnp_config_1 = require("tnp-config");
|
|
5
|
-
Object.defineProperty(exports, "Helpers", { enumerable: true, get: function () { return tnp_config_1.Helpers; } });
|
|
6
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Helpers = void 0;
|
|
4
|
+
var tnp_config_1 = require("tnp-config");
|
|
5
|
+
Object.defineProperty(exports, "Helpers", { enumerable: true, get: function () { return tnp_config_1.Helpers; } });
|
|
6
|
+
//# sourceMappingURL=/Users/dariusz/projects/npm/ng2-logger/tmp-bundle-release/bundle/project/ng2-logger/bundle-nocutsrc/lib/helpers.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './log';
|
|
2
|
-
export * from './level';
|
|
3
|
-
export * from './helpers';
|
|
4
|
-
export * from './logger';
|
|
5
|
-
export * from './display';
|
|
1
|
+
export * from './log';
|
|
2
|
+
export * from './level';
|
|
3
|
+
export * from './helpers';
|
|
4
|
+
export * from './logger';
|
|
5
|
+
export * from './display';
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./log"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./level"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./helpers"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./logger"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./display"), exports);
|
|
9
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./log"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./level"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./helpers"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./logger"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./display"), exports);
|
|
9
|
+
//# sourceMappingURL=/Users/dariusz/projects/npm/ng2-logger/tmp-bundle-release/bundle/project/ng2-logger/bundle-nocutsrc/lib/index.js.map
|
package/lib/level.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
export declare enum Level {
|
|
2
|
-
DATA = 0,
|
|
3
|
-
INFO = 1,
|
|
4
|
-
WARN = 2,
|
|
5
|
-
ERROR = 3,
|
|
6
|
-
SUCCESS = 4,
|
|
7
|
-
TASK_STARTED = 5,
|
|
8
|
-
TASK_DONE = 6,
|
|
9
|
-
__NOTHING = 7
|
|
10
|
-
}
|
|
11
|
-
export declare const LevelKey: {
|
|
12
|
-
0: string;
|
|
13
|
-
1: string;
|
|
14
|
-
2: string;
|
|
15
|
-
3: string;
|
|
16
|
-
4: string;
|
|
17
|
-
5: string;
|
|
18
|
-
6: string;
|
|
19
|
-
7: string;
|
|
20
|
-
};
|
|
21
|
-
export declare const LevelOrder: string[];
|
|
1
|
+
export declare enum Level {
|
|
2
|
+
DATA = 0,
|
|
3
|
+
INFO = 1,
|
|
4
|
+
WARN = 2,
|
|
5
|
+
ERROR = 3,
|
|
6
|
+
SUCCESS = 4,
|
|
7
|
+
TASK_STARTED = 5,
|
|
8
|
+
TASK_DONE = 6,
|
|
9
|
+
__NOTHING = 7
|
|
10
|
+
}
|
|
11
|
+
export declare const LevelKey: {
|
|
12
|
+
0: string;
|
|
13
|
+
1: string;
|
|
14
|
+
2: string;
|
|
15
|
+
3: string;
|
|
16
|
+
4: string;
|
|
17
|
+
5: string;
|
|
18
|
+
6: string;
|
|
19
|
+
7: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const LevelOrder: string[];
|
package/lib/level.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var _a;
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.LevelOrder = exports.LevelKey = exports.Level = void 0;
|
|
5
|
-
var Level;
|
|
6
|
-
(function (Level) {
|
|
7
|
-
Level[Level["DATA"] = 0] = "DATA";
|
|
8
|
-
Level[Level["INFO"] = 1] = "INFO";
|
|
9
|
-
Level[Level["WARN"] = 2] = "WARN";
|
|
10
|
-
Level[Level["ERROR"] = 3] = "ERROR";
|
|
11
|
-
Level[Level["SUCCESS"] = 4] = "SUCCESS";
|
|
12
|
-
Level[Level["TASK_STARTED"] = 5] = "TASK_STARTED";
|
|
13
|
-
Level[Level["TASK_DONE"] = 6] = "TASK_DONE";
|
|
14
|
-
Level[Level["__NOTHING"] = 7] = "__NOTHING";
|
|
15
|
-
})(Level = exports.Level || (exports.Level = {}));
|
|
16
|
-
exports.LevelKey = (_a = {},
|
|
17
|
-
_a[Level.DATA] = 'log',
|
|
18
|
-
_a[Level.INFO] = 'info',
|
|
19
|
-
_a[Level.WARN] = 'warn',
|
|
20
|
-
_a[Level.ERROR] = 'error',
|
|
21
|
-
_a[Level.SUCCESS] = 'success',
|
|
22
|
-
_a[Level.TASK_STARTED] = 'taskstarted',
|
|
23
|
-
_a[Level.TASK_DONE] = 'taskdone',
|
|
24
|
-
_a[Level.__NOTHING] = '',
|
|
25
|
-
_a);
|
|
26
|
-
exports.LevelOrder = [
|
|
27
|
-
exports.LevelKey[Level.DATA],
|
|
28
|
-
exports.LevelKey[Level.TASK_STARTED],
|
|
29
|
-
exports.LevelKey[Level.TASK_DONE],
|
|
30
|
-
exports.LevelKey[Level.INFO],
|
|
31
|
-
exports.LevelKey[Level.SUCCESS],
|
|
32
|
-
exports.LevelKey[Level.WARN],
|
|
33
|
-
exports.LevelKey[Level.ERROR],
|
|
34
|
-
];
|
|
35
|
-
//# sourceMappingURL
|
|
1
|
+
"use strict";
|
|
2
|
+
var _a;
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.LevelOrder = exports.LevelKey = exports.Level = void 0;
|
|
5
|
+
var Level;
|
|
6
|
+
(function (Level) {
|
|
7
|
+
Level[Level["DATA"] = 0] = "DATA";
|
|
8
|
+
Level[Level["INFO"] = 1] = "INFO";
|
|
9
|
+
Level[Level["WARN"] = 2] = "WARN";
|
|
10
|
+
Level[Level["ERROR"] = 3] = "ERROR";
|
|
11
|
+
Level[Level["SUCCESS"] = 4] = "SUCCESS";
|
|
12
|
+
Level[Level["TASK_STARTED"] = 5] = "TASK_STARTED";
|
|
13
|
+
Level[Level["TASK_DONE"] = 6] = "TASK_DONE";
|
|
14
|
+
Level[Level["__NOTHING"] = 7] = "__NOTHING";
|
|
15
|
+
})(Level = exports.Level || (exports.Level = {}));
|
|
16
|
+
exports.LevelKey = (_a = {},
|
|
17
|
+
_a[Level.DATA] = 'log',
|
|
18
|
+
_a[Level.INFO] = 'info',
|
|
19
|
+
_a[Level.WARN] = 'warn',
|
|
20
|
+
_a[Level.ERROR] = 'error',
|
|
21
|
+
_a[Level.SUCCESS] = 'success',
|
|
22
|
+
_a[Level.TASK_STARTED] = 'taskstarted',
|
|
23
|
+
_a[Level.TASK_DONE] = 'taskdone',
|
|
24
|
+
_a[Level.__NOTHING] = '',
|
|
25
|
+
_a);
|
|
26
|
+
exports.LevelOrder = [
|
|
27
|
+
exports.LevelKey[Level.DATA],
|
|
28
|
+
exports.LevelKey[Level.TASK_STARTED],
|
|
29
|
+
exports.LevelKey[Level.TASK_DONE],
|
|
30
|
+
exports.LevelKey[Level.INFO],
|
|
31
|
+
exports.LevelKey[Level.SUCCESS],
|
|
32
|
+
exports.LevelKey[Level.WARN],
|
|
33
|
+
exports.LevelKey[Level.ERROR],
|
|
34
|
+
];
|
|
35
|
+
//# sourceMappingURL=/Users/dariusz/projects/npm/ng2-logger/tmp-bundle-release/bundle/project/ng2-logger/bundle-nocutsrc/lib/level.js.map
|
package/lib/log.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { Logger } from './logger';
|
|
2
|
-
import { Level } from './level';
|
|
3
|
-
export declare class Log {
|
|
4
|
-
private constructor();
|
|
5
|
-
private static get instance();
|
|
6
|
-
static Logger: (typeof Logger);
|
|
7
|
-
static create(name: string, ...level: Level[]): Logger;
|
|
8
|
-
private static readonly consolelogfn;
|
|
9
|
-
static disableLogs(level?: Level): void;
|
|
10
|
-
static enableLogs(): void;
|
|
11
|
-
private _logOnly;
|
|
12
|
-
private _logModules;
|
|
13
|
-
private isDevelopmentMode;
|
|
14
|
-
private modeIsSet;
|
|
15
|
-
private fixedWidth;
|
|
16
|
-
private instances;
|
|
17
|
-
private levels;
|
|
18
|
-
private modules;
|
|
19
|
-
setProductionMode(): void;
|
|
20
|
-
onlyModules(...modules: (string | RegExp)[]): void;
|
|
21
|
-
onlyLevel(...level: Level[]): void;
|
|
22
|
-
private create;
|
|
23
|
-
private isMutedModule;
|
|
24
|
-
private muteAllOtherModules;
|
|
25
|
-
}
|
|
1
|
+
import { Logger } from './logger';
|
|
2
|
+
import { Level } from './level';
|
|
3
|
+
export declare class Log {
|
|
4
|
+
private constructor();
|
|
5
|
+
private static get instance();
|
|
6
|
+
static Logger: (typeof Logger);
|
|
7
|
+
static create(name: string, ...level: Level[]): Logger;
|
|
8
|
+
private static readonly consolelogfn;
|
|
9
|
+
static disableLogs(level?: Level): void;
|
|
10
|
+
static enableLogs(): void;
|
|
11
|
+
private _logOnly;
|
|
12
|
+
private _logModules;
|
|
13
|
+
private isDevelopmentMode;
|
|
14
|
+
private modeIsSet;
|
|
15
|
+
private fixedWidth;
|
|
16
|
+
private instances;
|
|
17
|
+
private levels;
|
|
18
|
+
private modules;
|
|
19
|
+
setProductionMode(): void;
|
|
20
|
+
onlyModules(...modules: (string | RegExp)[]): void;
|
|
21
|
+
onlyLevel(...level: Level[]): void;
|
|
22
|
+
private create;
|
|
23
|
+
private isMutedModule;
|
|
24
|
+
private muteAllOtherModules;
|
|
25
|
+
}
|