@rsdk/core 5.12.0-next.4 → 5.12.0-next.6
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { LogLevel } from '@rsdk/logging';
|
|
1
|
+
import { LogLevel, LogTimestampFormat } from '@rsdk/logging';
|
|
2
2
|
import { Config } from '../config';
|
|
3
3
|
export declare class LoggingConfig extends Config {
|
|
4
4
|
readonly level: LogLevel;
|
|
5
5
|
readonly redact: string[];
|
|
6
6
|
readonly sync: boolean;
|
|
7
7
|
readonly otelEnabled: boolean;
|
|
8
|
+
readonly logTimestampFormat: LogTimestampFormat;
|
|
8
9
|
}
|
|
@@ -18,6 +18,7 @@ let LoggingConfig = class LoggingConfig extends config_1.Config {
|
|
|
18
18
|
redact;
|
|
19
19
|
sync;
|
|
20
20
|
otelEnabled;
|
|
21
|
+
logTimestampFormat;
|
|
21
22
|
};
|
|
22
23
|
exports.LoggingConfig = LoggingConfig;
|
|
23
24
|
__decorate([
|
|
@@ -49,6 +50,13 @@ __decorate([
|
|
|
49
50
|
}),
|
|
50
51
|
__metadata("design:type", Boolean)
|
|
51
52
|
], LoggingConfig.prototype, "otelEnabled", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, config_1.Property)('LOG_TIMESTAMP_FORMAT', new config_1.EnumParser(logging_1.LogTimestampFormat), {
|
|
55
|
+
defaultValue: logging_1.LogTimestampFormat.isoTime,
|
|
56
|
+
description: 'Log timestamp format',
|
|
57
|
+
}),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], LoggingConfig.prototype, "logTimestampFormat", void 0);
|
|
52
60
|
exports.LoggingConfig = LoggingConfig = __decorate([
|
|
53
61
|
(0, config_1.ConfigSection)({
|
|
54
62
|
tags: [config_const_1.ConfigTag.infrastructure, config_const_1.ConfigTag.logging],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.config.js","sourceRoot":"","sources":["../../src/logging/logging.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"logging.config.js","sourceRoot":"","sources":["../../src/logging/logging.config.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4E;AAE5E,sCAQmB;AACnB,yDAAmD;AAK5C,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,eAAM;IAM9B,KAAK,CAAY;IAOjB,MAAM,CAAY;IAOlB,IAAI,CAAW;IAMf,WAAW,CAAW;IAMtB,kBAAkB,CAAsB;CAClD,CAAA;AAjCY,sCAAa;AAMf;IALR,IAAA,iBAAQ,EAAC,WAAW,EAAE,IAAI,mBAAU,CAAC,kBAAQ,CAAC,EAAE;QAC/C,sEAAsE;QACtE,YAAY,EAAE,uBAAa;QAC3B,WAAW,EAAE,WAAW;KACzB,CAAC;;4CACwB;AAOjB;IALR,IAAA,iBAAQ,EAAC,YAAY,EAAE,IAAI,oBAAW,CAAC,IAAI,qBAAY,EAAE,CAAC,EAAE;QAC3D,YAAY,EAAE,EAAE;QAChB,WAAW,EACT,gGAAgG;KACnG,CAAC;;6CACyB;AAOlB;IALR,IAAA,iBAAQ,EAAC,UAAU,EAAE,IAAI,mBAAU,EAAE,EAAE;QACtC,YAAY,EAAE,KAAK;QACnB,WAAW,EACT,wGAAwG;KAC3G,CAAC;;2CACsB;AAMf;IAJR,IAAA,iBAAQ,EAAC,kBAAkB,EAAE,IAAI,mBAAU,EAAE,EAAE;QAC9C,YAAY,EAAE,KAAK;QACnB,WAAW,EAAE,+BAA+B;KAC7C,CAAC;;kDAC6B;AAMtB;IAJR,IAAA,iBAAQ,EAAC,sBAAsB,EAAE,IAAI,mBAAU,CAAC,4BAAkB,CAAC,EAAE;QACpE,YAAY,EAAE,4BAAkB,CAAC,OAAO;QACxC,WAAW,EAAE,sBAAsB;KACpC,CAAC;;yDAC+C;wBAhCtC,aAAa;IAHzB,IAAA,sBAAa,EAAC;QACb,IAAI,EAAE,CAAC,wBAAS,CAAC,cAAc,EAAE,wBAAS,CAAC,OAAO,CAAC;KACpD,CAAC;GACW,aAAa,CAiCzB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/core",
|
|
3
|
-
"version": "5.12.0-next.
|
|
3
|
+
"version": "5.12.0-next.6",
|
|
4
4
|
"description": "Nestjs based microservice chassis",
|
|
5
5
|
"license": "Apache License 2.0",
|
|
6
6
|
"publishConfig": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"optional": true
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "32103725bddbe5e7e99074ba40b5032dc14cf60c"
|
|
53
53
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DEFAULT_LEVEL, LogLevel } from '@rsdk/logging';
|
|
1
|
+
import { DEFAULT_LEVEL, LogLevel, LogTimestampFormat } from '@rsdk/logging';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
ArrayParser,
|
|
@@ -41,4 +41,10 @@ export class LoggingConfig extends Config {
|
|
|
41
41
|
description: 'Enable OpenTelemetry exporter',
|
|
42
42
|
})
|
|
43
43
|
readonly otelEnabled!: boolean;
|
|
44
|
+
|
|
45
|
+
@Property('LOG_TIMESTAMP_FORMAT', new EnumParser(LogTimestampFormat), {
|
|
46
|
+
defaultValue: LogTimestampFormat.isoTime,
|
|
47
|
+
description: 'Log timestamp format',
|
|
48
|
+
})
|
|
49
|
+
readonly logTimestampFormat!: LogTimestampFormat;
|
|
44
50
|
}
|