@midwayjs/core 3.10.0 → 3.10.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.
|
@@ -9,7 +9,7 @@ export declare class MidwayLoggerService extends ServiceFactory<ILogger> {
|
|
|
9
9
|
private loggerFactory;
|
|
10
10
|
private lazyLoggerConfigMap;
|
|
11
11
|
constructor(applicationContext: IMidwayContainer, globalOptions?: {});
|
|
12
|
-
protected init():
|
|
12
|
+
protected init(): void;
|
|
13
13
|
protected createClient(config: any, name?: string): void;
|
|
14
14
|
getName(): string;
|
|
15
15
|
createLogger(name: any, config: any): any;
|
|
@@ -22,10 +22,10 @@ let MidwayLoggerService = class MidwayLoggerService extends serviceFactory_1.Ser
|
|
|
22
22
|
this.globalOptions = globalOptions;
|
|
23
23
|
this.lazyLoggerConfigMap = new Map();
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
init() {
|
|
26
26
|
var _a;
|
|
27
27
|
this.loggerFactory = this.globalOptions['loggerFactory'] || logger_1.loggers;
|
|
28
|
-
|
|
28
|
+
this.initClients(this.configService.getConfiguration('midwayLogger'));
|
|
29
29
|
// alias inject logger
|
|
30
30
|
(_a = this.applicationContext) === null || _a === void 0 ? void 0 : _a.registerObject('logger', this.getLogger('appLogger'));
|
|
31
31
|
}
|
|
@@ -68,7 +68,7 @@ __decorate([
|
|
|
68
68
|
(0, decorator_1.Init)(),
|
|
69
69
|
__metadata("design:type", Function),
|
|
70
70
|
__metadata("design:paramtypes", []),
|
|
71
|
-
__metadata("design:returntype",
|
|
71
|
+
__metadata("design:returntype", void 0)
|
|
72
72
|
], MidwayLoggerService.prototype, "init", null);
|
|
73
73
|
MidwayLoggerService = __decorate([
|
|
74
74
|
(0, decorator_1.Provide)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/core",
|
|
3
|
-
"version": "3.10.
|
|
3
|
+
"version": "3.10.1",
|
|
4
4
|
"description": "midway core",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"engines": {
|
|
43
43
|
"node": ">=12"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "6bc9f7a97e4188399d2406f5a38bad5aeb983e07"
|
|
46
46
|
}
|