@celljs/logger 3.5.14 → 3.6.1
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/lib/common/index.js +16 -3
- package/lib/common/index.js.map +1 -1
- package/lib/common/module.d.ts +1 -1
- package/lib/common/winston-logger.js +21 -13
- package/lib/common/winston-logger.js.map +1 -1
- package/package.json +22 -22
package/lib/common/index.js
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
2
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
tslib_1.__exportStar(require("./winston-logger-protocol"), exports);
|
|
17
|
+
__exportStar(require("./winston-logger"), exports);
|
|
18
|
+
__exportStar(require("./winston-logger-protocol"), exports);
|
|
6
19
|
//# sourceMappingURL=index.js.map
|
package/lib/common/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,4DAA0C"}
|
package/lib/common/module.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.WinstonLogger = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
13
|
const core_1 = require("@celljs/core");
|
|
6
14
|
const winston_logger_protocol_1 = require("./winston-logger-protocol");
|
|
7
15
|
const winston_1 = require("winston");
|
|
@@ -41,28 +49,28 @@ let WinstonLogger = class WinstonLogger extends core_1.AbstractLogger {
|
|
|
41
49
|
logFn(`${traceStr}${contextStr} ${message}`);
|
|
42
50
|
}
|
|
43
51
|
};
|
|
44
|
-
|
|
52
|
+
exports.WinstonLogger = WinstonLogger;
|
|
53
|
+
__decorate([
|
|
45
54
|
(0, core_1.Value)(`${core_1.LOGGER_CONFIG}.winstonConfig`),
|
|
46
|
-
|
|
55
|
+
__metadata("design:type", Object)
|
|
47
56
|
], WinstonLogger.prototype, "winstonConfig", void 0);
|
|
48
|
-
|
|
57
|
+
__decorate([
|
|
49
58
|
(0, core_1.Autowired)(winston_logger_protocol_1.WinstonConfig),
|
|
50
59
|
(0, core_1.Optional)(),
|
|
51
|
-
|
|
60
|
+
__metadata("design:type", Object)
|
|
52
61
|
], WinstonLogger.prototype, "winstonConfig2", void 0);
|
|
53
|
-
|
|
62
|
+
__decorate([
|
|
54
63
|
(0, core_1.Autowired)(winston_logger_protocol_1.RawWinstonLogger),
|
|
55
64
|
(0, core_1.Optional)(),
|
|
56
|
-
|
|
65
|
+
__metadata("design:type", Object)
|
|
57
66
|
], WinstonLogger.prototype, "logger", void 0);
|
|
58
|
-
|
|
67
|
+
__decorate([
|
|
59
68
|
(0, core_1.PostConstruct)(),
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
__metadata("design:type", Function),
|
|
70
|
+
__metadata("design:paramtypes", []),
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
63
72
|
], WinstonLogger.prototype, "init", null);
|
|
64
|
-
WinstonLogger =
|
|
73
|
+
exports.WinstonLogger = WinstonLogger = __decorate([
|
|
65
74
|
(0, core_1.Component)({ id: core_1.Logger, rebind: true, scope: core_1.Scope.Transient })
|
|
66
75
|
], WinstonLogger);
|
|
67
|
-
exports.WinstonLogger = WinstonLogger;
|
|
68
76
|
//# sourceMappingURL=winston-logger.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"winston-logger.js","sourceRoot":"","sources":["../../src/common/winston-logger.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"winston-logger.js","sourceRoot":"","sources":["../../src/common/winston-logger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uCAAkI;AAClI,uEAA4E;AAC5E,qCAA2D;AAGpD,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,qBAAc;IAcnC,IAAI;QACV,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;YACf,IAAI,CAAC,MAAM,GAAG,IAAA,sBAAY,EAAC;gBACvB,KAAK,EAAE,IAAI,CAAC,KAAK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E,OAAgB;;QACnF,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,IAAI,CAAC,OAAO,CAAC;QAClC,MAAM,OAAO,GAAG,MAAA,IAAI,CAAC,eAAe,0CAAE,OAAO,EAAE,CAAC;QAChD,MAAM,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,MAAM,UAAU,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC5D,KAAK,CAAC,GAAG,QAAQ,GAAG,UAAU,IAAI,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;CACJ,CAAA;AAxDY,sCAAa;AAGH;IADlB,IAAA,YAAK,EAAC,GAAG,oBAAa,gBAAgB,CAAC;;oDACS;AAI9B;IAFlB,IAAA,gBAAS,EAAC,uCAAa,CAAC;IACxB,IAAA,eAAQ,GAAE;;qDACuC;AAIxC;IAFT,IAAA,gBAAS,EAAC,0CAAgB,CAAC;IAC3B,IAAA,eAAQ,GAAE;;6CACwB;AAGzB;IADT,IAAA,oBAAa,GAAE;;;;yCAcf;wBA3BQ,aAAa;IADzB,IAAA,gBAAS,EAAC,EAAE,EAAE,EAAE,aAAM,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,YAAK,CAAC,SAAS,EAAE,CAAC;GACnD,aAAa,CAwDzB"}
|
package/package.json
CHANGED
|
@@ -1,30 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celljs/logger",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "logger component for pino",
|
|
5
|
-
"main": "lib/common/index.js",
|
|
6
|
-
"typings": "lib/common/index.d.ts",
|
|
7
|
-
"dependencies": {
|
|
8
|
-
"@celljs/core": "3.5.14",
|
|
9
|
-
"@celljs/web": "3.5.14",
|
|
10
|
-
"tslib": "^2.8.0",
|
|
11
|
-
"winston": "^3.10.0"
|
|
12
|
-
},
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
"access": "public"
|
|
15
|
-
},
|
|
16
5
|
"keywords": [
|
|
17
6
|
"cell-component"
|
|
18
7
|
],
|
|
19
|
-
"
|
|
8
|
+
"homepage": "https://github.com/cellbang/cell",
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/cellbang/cell/issues"
|
|
11
|
+
},
|
|
20
12
|
"repository": {
|
|
21
13
|
"type": "git",
|
|
22
14
|
"url": "https://github.com/cellbang/cell.git"
|
|
23
15
|
},
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"homepage": "https://github.com/cellbang/cell",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"main": "lib/common/index.js",
|
|
18
|
+
"typings": "lib/common/index.d.ts",
|
|
28
19
|
"files": [
|
|
29
20
|
"lib",
|
|
30
21
|
"src",
|
|
@@ -32,14 +23,23 @@
|
|
|
32
23
|
"cell-local.yml"
|
|
33
24
|
],
|
|
34
25
|
"scripts": {
|
|
35
|
-
"lint": "cell-component lint",
|
|
36
26
|
"build": "cell-component build",
|
|
37
|
-
"watch": "cell-component watch",
|
|
38
27
|
"clean": "cell-component clean",
|
|
39
|
-
"
|
|
28
|
+
"lint": "cell-component lint",
|
|
29
|
+
"test": "cell-component test:js",
|
|
30
|
+
"watch": "cell-component watch"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@celljs/core": "3.6.1",
|
|
34
|
+
"@celljs/web": "3.6.1",
|
|
35
|
+
"tslib": "^2.8.0",
|
|
36
|
+
"winston": "^3.10.0"
|
|
40
37
|
},
|
|
41
38
|
"devDependencies": {
|
|
42
|
-
"@celljs/component": "3.
|
|
39
|
+
"@celljs/component": "3.6.1"
|
|
40
|
+
},
|
|
41
|
+
"publishConfig": {
|
|
42
|
+
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "336c26ecf2639019909bd1ed976194bd8ef6141f"
|
|
45
45
|
}
|