@icd-iot-aicf/nestjs-logger 3.0.0 → 3.0.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/SNAPSHOT_GUIDE.md +154 -0
- package/migration/log-snapshot-v3.e2e-spec.ts +364 -0
- package/package.json +1 -1
- package/dist/app.module.d.ts +0 -2
- package/dist/app.module.js +0 -23
- package/dist/app.module.js.map +0 -1
- package/dist/app.service.d.ts +0 -3
- package/dist/app.service.js +0 -20
- package/dist/app.service.js.map +0 -1
- package/dist/common/async-storage/external-transaction-info.d.ts +0 -11
- package/dist/common/async-storage/external-transaction-info.js +0 -6
- package/dist/common/async-storage/external-transaction-info.js.map +0 -1
- package/dist/common/async-storage/summaryEndpoint-info.d.ts +0 -4
- package/dist/common/async-storage/summaryEndpoint-info.js +0 -10
- package/dist/common/async-storage/summaryEndpoint-info.js.map +0 -1
- package/dist/common/async-storage/tracnsaction-info.d.ts +0 -14
- package/dist/common/async-storage/tracnsaction-info.js +0 -6
- package/dist/common/async-storage/tracnsaction-info.js.map +0 -1
- package/dist/common/dto/result.dto.d.ts +0 -18
- package/dist/common/dto/result.dto.js +0 -12
- package/dist/common/dto/result.dto.js.map +0 -1
- package/dist/common/helper/error.d.ts +0 -4
- package/dist/common/helper/error.js +0 -15
- package/dist/common/helper/error.js.map +0 -1
- package/dist/common/helper/response.d.ts +0 -38
- package/dist/common/helper/response.js +0 -212
- package/dist/common/helper/response.js.map +0 -1
- package/dist/common/helper/tools.d.ts +0 -8
- package/dist/common/helper/tools.js +0 -98
- package/dist/common/helper/tools.js.map +0 -1
- package/dist/common/helper/tools.service.d.ts +0 -12
- package/dist/common/helper/tools.service.js +0 -148
- package/dist/common/helper/tools.service.js.map +0 -1
- package/dist/common/internal-logs-info.module.d.ts +0 -3
- package/dist/common/internal-logs-info.module.js +0 -29
- package/dist/common/internal-logs-info.module.js.map +0 -1
- package/dist/common/service/common/context.service.d.ts +0 -6
- package/dist/common/service/common/context.service.js +0 -34
- package/dist/common/service/common/context.service.js.map +0 -1
- package/dist/common/service/logger-debug/logger-debug-lib.service.d.ts +0 -6
- package/dist/common/service/logger-debug/logger-debug-lib.service.js +0 -35
- package/dist/common/service/logger-debug/logger-debug-lib.service.js.map +0 -1
- package/dist/config/app-log-config.module.d.ts +0 -5
- package/dist/config/app-log-config.module.js +0 -38
- package/dist/config/app-log-config.module.js.map +0 -1
- package/dist/config/app-log-config.service.d.ts +0 -6
- package/dist/config/app-log-config.service.js +0 -32
- package/dist/config/app-log-config.service.js.map +0 -1
- package/dist/config/configurations.d.ts +0 -23
- package/dist/config/configurations.js +0 -15
- package/dist/config/configurations.js.map +0 -1
- package/dist/index.d.ts +0 -24
- package/dist/index.js +0 -41
- package/dist/index.js.map +0 -1
- package/dist/logger/aicf/dtos/aicf-manual.dto.d.ts +0 -128
- package/dist/logger/aicf/dtos/aicf-manual.dto.js +0 -214
- package/dist/logger/aicf/dtos/aicf-manual.dto.js.map +0 -1
- package/dist/logger/aicf/dtos/aicf.dto.d.ts +0 -208
- package/dist/logger/aicf/dtos/aicf.dto.js +0 -177
- package/dist/logger/aicf/dtos/aicf.dto.js.map +0 -1
- package/dist/logger/aicf/interceptors/aicf-amqp.interceptor.d.ts +0 -7
- package/dist/logger/aicf/interceptors/aicf-amqp.interceptor.js +0 -78
- package/dist/logger/aicf/interceptors/aicf-amqp.interceptor.js.map +0 -1
- package/dist/logger/aicf/interceptors/aicf.interceptor.d.ts +0 -9
- package/dist/logger/aicf/interceptors/aicf.interceptor.js +0 -38
- package/dist/logger/aicf/interceptors/aicf.interceptor.js.map +0 -1
- package/dist/logger/aicf/middleware/aicf.middleware.d.ts +0 -8
- package/dist/logger/aicf/middleware/aicf.middleware.js +0 -69
- package/dist/logger/aicf/middleware/aicf.middleware.js.map +0 -1
- package/dist/logger/aicf/services/aicf-endpoint.service.d.ts +0 -13
- package/dist/logger/aicf/services/aicf-endpoint.service.js +0 -116
- package/dist/logger/aicf/services/aicf-endpoint.service.js.map +0 -1
- package/dist/logger/cloudron/decorators/cloudron.decorators.d.ts +0 -0
- package/dist/logger/cloudron/decorators/cloudron.decorators.js +0 -1
- package/dist/logger/cloudron/decorators/cloudron.decorators.js.map +0 -1
- package/dist/logger/cloudron/dtos/cauldron-manual.dto.d.ts +0 -120
- package/dist/logger/cloudron/dtos/cauldron-manual.dto.js +0 -183
- package/dist/logger/cloudron/dtos/cauldron-manual.dto.js.map +0 -1
- package/dist/logger/cloudron/dtos/cauldron.dto.d.ts +0 -182
- package/dist/logger/cloudron/dtos/cauldron.dto.js +0 -114
- package/dist/logger/cloudron/dtos/cauldron.dto.js.map +0 -1
- package/dist/logger/cloudron/global/cloudron.global.d.ts +0 -0
- package/dist/logger/cloudron/global/cloudron.global.js +0 -1
- package/dist/logger/cloudron/global/cloudron.global.js.map +0 -1
- package/dist/logger/cloudron/intercepters/cloudron.interceptor.d.ts +0 -11
- package/dist/logger/cloudron/intercepters/cloudron.interceptor.js +0 -41
- package/dist/logger/cloudron/intercepters/cloudron.interceptor.js.map +0 -1
- package/dist/logger/cloudron/middleware/cloudron.middleware.d.ts +0 -12
- package/dist/logger/cloudron/middleware/cloudron.middleware.js +0 -52
- package/dist/logger/cloudron/middleware/cloudron.middleware.js.map +0 -1
- package/dist/logger/cloudron/services/cloudron-details-logs.service.d.ts +0 -15
- package/dist/logger/cloudron/services/cloudron-details-logs.service.js +0 -127
- package/dist/logger/cloudron/services/cloudron-details-logs.service.js.map +0 -1
- package/dist/logger/cloudron/services/cloudron-summary-logs.service.d.ts +0 -6
- package/dist/logger/cloudron/services/cloudron-summary-logs.service.js +0 -43
- package/dist/logger/cloudron/services/cloudron-summary-logs.service.js.map +0 -1
- package/dist/logger/core/database/hook-ingress.database.d.ts +0 -8
- package/dist/logger/core/database/hook-ingress.database.js +0 -215
- package/dist/logger/core/database/hook-ingress.database.js.map +0 -1
- package/dist/logger/core/decorators/customDecorators.d.ts +0 -20
- package/dist/logger/core/decorators/customDecorators.js +0 -92
- package/dist/logger/core/decorators/customDecorators.js.map +0 -1
- package/dist/logger/core/dtos/core.dto.d.ts +0 -86
- package/dist/logger/core/dtos/core.dto.js +0 -9
- package/dist/logger/core/dtos/core.dto.js.map +0 -1
- package/dist/logger/core/dtos/log-entry-class.d.ts +0 -11
- package/dist/logger/core/dtos/log-entry-class.js +0 -15
- package/dist/logger/core/dtos/log-entry-class.js.map +0 -1
- package/dist/logger/core/enum/enum.d.ts +0 -75
- package/dist/logger/core/enum/enum.js +0 -307
- package/dist/logger/core/enum/enum.js.map +0 -1
- package/dist/logger/core/functions/error-reponse.d.ts +0 -2
- package/dist/logger/core/functions/error-reponse.js +0 -26
- package/dist/logger/core/functions/error-reponse.js.map +0 -1
- package/dist/logger/core/functions/global-function.d.ts +0 -43
- package/dist/logger/core/functions/global-function.js +0 -180
- package/dist/logger/core/functions/global-function.js.map +0 -1
- package/dist/logger/core/guard/logger.guard.d.ts +0 -8
- package/dist/logger/core/guard/logger.guard.js +0 -44
- package/dist/logger/core/guard/logger.guard.js.map +0 -1
- package/dist/logger/core/interceptors/amqp.interceptor.d.ts +0 -6
- package/dist/logger/core/interceptors/amqp.interceptor.js +0 -46
- package/dist/logger/core/interceptors/amqp.interceptor.js.map +0 -1
- package/dist/logger/core/interceptors/core-logs.interceptor.d.ts +0 -18
- package/dist/logger/core/interceptors/core-logs.interceptor.js +0 -70
- package/dist/logger/core/interceptors/core-logs.interceptor.js.map +0 -1
- package/dist/logger/core/interceptors/http.interceptor.d.ts +0 -5
- package/dist/logger/core/interceptors/http.interceptor.js +0 -30
- package/dist/logger/core/interceptors/http.interceptor.js.map +0 -1
- package/dist/logger/core/interceptors/interceptors.d.ts +0 -3
- package/dist/logger/core/interceptors/interceptors.js +0 -20
- package/dist/logger/core/interceptors/interceptors.js.map +0 -1
- package/dist/logger/core/middleware/base-http.middleware.d.ts +0 -33
- package/dist/logger/core/middleware/base-http.middleware.js +0 -104
- package/dist/logger/core/middleware/base-http.middleware.js.map +0 -1
- package/dist/logger/core/middleware/http-logs-middleware.service.d.ts +0 -19
- package/dist/logger/core/middleware/http-logs-middleware.service.js +0 -61
- package/dist/logger/core/middleware/http-logs-middleware.service.js.map +0 -1
- package/dist/logger/core/module/amqp/amqp.module.d.ts +0 -2
- package/dist/logger/core/module/amqp/amqp.module.js +0 -43
- package/dist/logger/core/module/amqp/amqp.module.js.map +0 -1
- package/dist/logger/core/pipes/index.d.ts +0 -1
- package/dist/logger/core/pipes/index.js +0 -18
- package/dist/logger/core/pipes/index.js.map +0 -1
- package/dist/logger/core/pipes/masking-logs/masking-logs.pipe.d.ts +0 -5
- package/dist/logger/core/pipes/masking-logs/masking-logs.pipe.js +0 -38
- package/dist/logger/core/pipes/masking-logs/masking-logs.pipe.js.map +0 -1
- package/dist/logger/core/services/summary-flush.service.d.ts +0 -8
- package/dist/logger/core/services/summary-flush.service.js +0 -31
- package/dist/logger/core/services/summary-flush.service.js.map +0 -1
- package/dist/logger/esb/dtos/logger.esb.dto.d.ts +0 -136
- package/dist/logger/esb/dtos/logger.esb.dto.js +0 -99
- package/dist/logger/esb/dtos/logger.esb.dto.js.map +0 -1
- package/dist/logger/esb/intercepters/esb.interceptor.d.ts +0 -9
- package/dist/logger/esb/intercepters/esb.interceptor.js +0 -36
- package/dist/logger/esb/intercepters/esb.interceptor.js.map +0 -1
- package/dist/logger/esb/middleware/esb.middleware.d.ts +0 -10
- package/dist/logger/esb/middleware/esb.middleware.js +0 -64
- package/dist/logger/esb/middleware/esb.middleware.js.map +0 -1
- package/dist/logger/esb/services/external-logs-esb.service.d.ts +0 -10
- package/dist/logger/esb/services/external-logs-esb.service.js +0 -98
- package/dist/logger/esb/services/external-logs-esb.service.js.map +0 -1
- package/dist/logger/logger.middleware.d.ts +0 -0
- package/dist/logger/logger.middleware.js +0 -1
- package/dist/logger/logger.middleware.js.map +0 -1
- package/dist/logger/logger.module.d.ts +0 -2
- package/dist/logger/logger.module.js +0 -58
- package/dist/logger/logger.module.js.map +0 -1
- package/dist/logger/logger.service.d.ts +0 -12
- package/dist/logger/logger.service.js +0 -129
- package/dist/logger/logger.service.js.map +0 -1
- package/dist/main.d.ts +0 -2
- package/dist/main.js +0 -15
- package/dist/main.js.map +0 -1
- package/dist/metrics/metrics-manual.service.d.ts +0 -12
- package/dist/metrics/metrics-manual.service.js +0 -45
- package/dist/metrics/metrics-manual.service.js.map +0 -1
- package/dist/metrics/metrics.middleware.d.ts +0 -14
- package/dist/metrics/metrics.middleware.js +0 -74
- package/dist/metrics/metrics.middleware.js.map +0 -1
- package/dist/metrics/metrics.module.d.ts +0 -6
- package/dist/metrics/metrics.module.js +0 -42
- package/dist/metrics/metrics.module.js.map +0 -1
- package/dist/metrics/metrics.service.d.ts +0 -11
- package/dist/metrics/metrics.service.js +0 -112
- package/dist/metrics/metrics.service.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
- package/dist/utils/tools.d.ts +0 -50
- package/dist/utils/tools.js +0 -266
- package/dist/utils/tools.js.map +0 -1
|
@@ -1,116 +0,0 @@
|
|
|
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
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.AicfEndpointService = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const logger_service_1 = require("../../logger.service");
|
|
18
|
-
const context_service_1 = require("../../../common/service/common/context.service");
|
|
19
|
-
const aicf_dto_1 = require("../dtos/aicf.dto");
|
|
20
|
-
const microtime_1 = __importDefault(require("microtime"));
|
|
21
|
-
const error_reponse_1 = require("../../core/functions/error-reponse");
|
|
22
|
-
const global_function_1 = require("../../core/functions/global-function");
|
|
23
|
-
let AicfEndpointService = class AicfEndpointService {
|
|
24
|
-
constructor(logger, contextService) {
|
|
25
|
-
this.logger = logger;
|
|
26
|
-
this.contextService = contextService;
|
|
27
|
-
}
|
|
28
|
-
modHeaderAicf(headers, subSessionId) {
|
|
29
|
-
const transactionRefInfo = (0, global_function_1.GetTransactionReference)();
|
|
30
|
-
headers['x-origin-session'] =
|
|
31
|
-
`${transactionRefInfo.sessionId}|${subSessionId}`;
|
|
32
|
-
headers['x-ais-orderref'] = transactionRefInfo.transactionId;
|
|
33
|
-
return headers;
|
|
34
|
-
}
|
|
35
|
-
requestLog(request, subSessionId, externalInfo) {
|
|
36
|
-
const requestFormat = (0, aicf_dto_1.MapRequestFormat)(request);
|
|
37
|
-
try {
|
|
38
|
-
const endpointInfo = {
|
|
39
|
-
request: requestFormat,
|
|
40
|
-
dependency: externalInfo.dependency,
|
|
41
|
-
subSessionId: subSessionId,
|
|
42
|
-
startTime: microtime_1.default.now(),
|
|
43
|
-
};
|
|
44
|
-
this.contextService.set(request.headers['x-origin-session'], endpointInfo);
|
|
45
|
-
}
|
|
46
|
-
catch (e) {
|
|
47
|
-
console.log(e);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
responseLog(response) {
|
|
51
|
-
try {
|
|
52
|
-
const transactionRefInfo = (0, global_function_1.GetTransactionReference)();
|
|
53
|
-
const externalInfo = (0, global_function_1.GetExternalTransactionInfo)();
|
|
54
|
-
const endTime = microtime_1.default.now();
|
|
55
|
-
const responseFormat = (0, aicf_dto_1.MapResponseFormat)(response);
|
|
56
|
-
const requestFormat = (0, aicf_dto_1.MapRequestFormat)(response.config);
|
|
57
|
-
(0, global_function_1.SetIsUsedExternalInfo)(() => {
|
|
58
|
-
this.logger.log(new aicf_dto_1.CAICFDetailEndpoint({
|
|
59
|
-
dependency: externalInfo.dependency,
|
|
60
|
-
subSessionId: externalInfo.subSessionId,
|
|
61
|
-
resultCode: response.status.toString(),
|
|
62
|
-
resultMessage: response.statusText,
|
|
63
|
-
action: aicf_dto_1.ACTION_TYPE.HTTP,
|
|
64
|
-
endTime: endTime,
|
|
65
|
-
logLevel: aicf_dto_1.LOG_LEVEL.INFO,
|
|
66
|
-
request: requestFormat,
|
|
67
|
-
response: responseFormat,
|
|
68
|
-
startTime: externalInfo.serviceStartTime,
|
|
69
|
-
sessionId: transactionRefInfo.sessionId,
|
|
70
|
-
recordName: transactionRefInfo.recordName,
|
|
71
|
-
subAction: requestFormat.method,
|
|
72
|
-
}));
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
catch (e) {
|
|
76
|
-
console.log(e);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
responseLogError(error) {
|
|
80
|
-
const transactionRefInfo = (0, global_function_1.GetTransactionReference)();
|
|
81
|
-
const externalInfo = (0, global_function_1.GetExternalTransactionInfo)();
|
|
82
|
-
const endTime = microtime_1.default.now();
|
|
83
|
-
const sessionId = transactionRefInfo.sessionId;
|
|
84
|
-
const requestFormat = (0, aicf_dto_1.MapRequestFormat)(error.config);
|
|
85
|
-
const errorFormat = (0, error_reponse_1.mapErrorResponseWithErrorCode)(error.code, error.response?.status);
|
|
86
|
-
const responseError = {
|
|
87
|
-
status: errorFormat.httpCode,
|
|
88
|
-
headers: error.config?.headers,
|
|
89
|
-
data: {
|
|
90
|
-
resultCode: errorFormat.resultCode,
|
|
91
|
-
resultMessage: errorFormat.resultDescription,
|
|
92
|
-
},
|
|
93
|
-
};
|
|
94
|
-
const responseFormat = (0, aicf_dto_1.MapResponseFormat)(responseError);
|
|
95
|
-
this.logger.log(new aicf_dto_1.CAICFDetailEndpoint({
|
|
96
|
-
dependency: externalInfo.dependency,
|
|
97
|
-
subSessionId: externalInfo.subSessionId,
|
|
98
|
-
action: aicf_dto_1.ACTION_TYPE.HTTP,
|
|
99
|
-
endTime: endTime,
|
|
100
|
-
logLevel: aicf_dto_1.LOG_LEVEL.INFO,
|
|
101
|
-
request: requestFormat,
|
|
102
|
-
response: responseFormat,
|
|
103
|
-
startTime: externalInfo.serviceStartTime,
|
|
104
|
-
sessionId: sessionId,
|
|
105
|
-
recordName: transactionRefInfo.recordName,
|
|
106
|
-
subAction: requestFormat.method,
|
|
107
|
-
}));
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
exports.AicfEndpointService = AicfEndpointService;
|
|
111
|
-
exports.AicfEndpointService = AicfEndpointService = __decorate([
|
|
112
|
-
(0, common_1.Injectable)(),
|
|
113
|
-
__metadata("design:paramtypes", [logger_service_1.CustomLoggerService,
|
|
114
|
-
context_service_1.ContextService])
|
|
115
|
-
], AicfEndpointService);
|
|
116
|
-
//# sourceMappingURL=aicf-endpoint.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aicf-endpoint.service.js","sourceRoot":"","sources":["../../../../src/logger/aicf/services/aicf-endpoint.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yDAA2D;AAC3D,oFAAgF;AAChF,+CAO0B;AAC1B,0DAAkC;AAElC,sEAAmF;AACnF,0EAK8C;AAKvC,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,MAA2B,EAC3B,cAA8B;QAD9B,WAAM,GAAN,MAAM,CAAqB;QAC3B,mBAAc,GAAd,cAAc,CAAgB;IAC9C,CAAC;IAEJ,aAAa,CAAC,OAA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AE,WAAW,CAAC,iBAAiB;aAC7C;SACF,CAAC;QACF,MAAM,cAAc,GAAG,IAAA,4BAAiB,EAAC,aAAa,CAAC,CAAC;QACxD,IAAI,CAAC,MAAM,CAAC,GAAG,CACb,IAAI,8BAAmB,CAAC;YACtB,UAAU,EAAE,YAAY,CAAC,UAAU;YACnC,YAAY,EAAE,YAAY,CAAC,YAAY;YACvC,MAAM,EAAE,sBAAW,CAAC,IAAI;YACxB,OAAO,EAAE,OAAO;YAChB,QAAQ,EAAE,oBAAS,CAAC,IAAI;YACxB,OAAO,EAAE,aAAa;YACtB,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE,YAAY,CAAC,gBAAgB;YACxC,SAAS,EAAE,SAAS;YACpB,UAAU,EAAE,kBAAkB,CAAC,UAAU;YACzC,SAAS,EAAE,aAAa,CAAC,MAAM;SAChC,CAAC,CACH,CAAC;IACJ,CAAC;CACF,CAAA;AA1GY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAGgB,oCAAmB;QACX,gCAAc;GAHtC,mBAAmB,CA0G/B"}
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=cloudron.decorators.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloudron.decorators.js","sourceRoot":"","sources":["../../../../src/logger/cloudron/decorators/cloudron.decorators.ts"],"names":[],"mappings":""}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { TransactionInfoStorage } from '../../../common/async-storage/tracnsaction-info';
|
|
2
|
-
import { CDetailLog, CSummaryLog, IActivityLog, IDetailLog, ILogCustom, ILogCustom2 } from './cauldron.dto';
|
|
3
|
-
import { NextFunction } from 'express';
|
|
4
|
-
import { AppLogConfig } from '../../../config/configurations';
|
|
5
|
-
import { DetailsFlushService } from '../../../common/dto/result.dto';
|
|
6
|
-
export interface AppLogicInfo {
|
|
7
|
-
type: string;
|
|
8
|
-
message: string;
|
|
9
|
-
source: Record<string, any>;
|
|
10
|
-
}
|
|
11
|
-
export interface Custom1LogicInfo {
|
|
12
|
-
activity: IActivityLog;
|
|
13
|
-
appLogic: AppLogicInfo;
|
|
14
|
-
}
|
|
15
|
-
export interface IManualDetailLog<T> {
|
|
16
|
-
systemTimestamp: string;
|
|
17
|
-
logType: string;
|
|
18
|
-
logLevel: string;
|
|
19
|
-
namespace: string;
|
|
20
|
-
applicationName: string;
|
|
21
|
-
containerId: string;
|
|
22
|
-
sessionId: string;
|
|
23
|
-
tid: string;
|
|
24
|
-
identity?: string;
|
|
25
|
-
recordName: string;
|
|
26
|
-
custom1: T;
|
|
27
|
-
}
|
|
28
|
-
export interface ConnectionInfo {
|
|
29
|
-
type: string;
|
|
30
|
-
message: string;
|
|
31
|
-
protocol: string;
|
|
32
|
-
source: string;
|
|
33
|
-
}
|
|
34
|
-
export interface ILogCustomWithFunc extends ILogCustom {
|
|
35
|
-
addSummaryFunc?: NextFunction;
|
|
36
|
-
}
|
|
37
|
-
export declare class CDetailManaulLogWithPushSummary implements IDetailLog {
|
|
38
|
-
systemTimestamp: any;
|
|
39
|
-
logType: string;
|
|
40
|
-
logLevel: string;
|
|
41
|
-
namespace: string;
|
|
42
|
-
applicationName: string;
|
|
43
|
-
containerId: string;
|
|
44
|
-
sessionId: string | string[];
|
|
45
|
-
tid: string | string[];
|
|
46
|
-
identity: string;
|
|
47
|
-
custom1: ILogCustomWithFunc;
|
|
48
|
-
addSummaryFunc?: NextFunction;
|
|
49
|
-
constructor(data: any);
|
|
50
|
-
}
|
|
51
|
-
export declare class CManualDetail implements CDetailLog {
|
|
52
|
-
systemTimestamp: any;
|
|
53
|
-
logType: string;
|
|
54
|
-
logLevel: string;
|
|
55
|
-
namespace: string;
|
|
56
|
-
applicationName: string;
|
|
57
|
-
containerId: string;
|
|
58
|
-
sessionId: string | string[];
|
|
59
|
-
tid: string | string[];
|
|
60
|
-
identity: string;
|
|
61
|
-
custom1: any;
|
|
62
|
-
constructor(transactionRefInfo: TransactionInfoStorage, detail: DetailsFlushService<any, any>);
|
|
63
|
-
}
|
|
64
|
-
export declare class CManualSummary implements CSummaryLog {
|
|
65
|
-
systemTimestamp: any;
|
|
66
|
-
logType: string;
|
|
67
|
-
namespace: string;
|
|
68
|
-
applicationName: string;
|
|
69
|
-
containerId: string;
|
|
70
|
-
sessionId: string | string[];
|
|
71
|
-
tid: string | string[];
|
|
72
|
-
identity: string;
|
|
73
|
-
cmdName: string;
|
|
74
|
-
resultCode: string;
|
|
75
|
-
resultDesc: string;
|
|
76
|
-
reqTimestamp: string;
|
|
77
|
-
resTimestamp: string;
|
|
78
|
-
usageTime: number;
|
|
79
|
-
custom: any;
|
|
80
|
-
custom2?: ILogCustom2;
|
|
81
|
-
constructor(transactionRefInfo: TransactionInfoStorage, detail: DetailsFlushService<any, any>);
|
|
82
|
-
}
|
|
83
|
-
export declare class CManualConnection implements IManualDetailLog<{
|
|
84
|
-
information: ConnectionInfo;
|
|
85
|
-
}> {
|
|
86
|
-
applicationName: string;
|
|
87
|
-
containerId: string;
|
|
88
|
-
custom1: {
|
|
89
|
-
information: ConnectionInfo;
|
|
90
|
-
};
|
|
91
|
-
identity: string;
|
|
92
|
-
logLevel: string;
|
|
93
|
-
logType: string;
|
|
94
|
-
namespace: string;
|
|
95
|
-
sessionId: string;
|
|
96
|
-
systemTimestamp: string;
|
|
97
|
-
tid: string;
|
|
98
|
-
recordName: string;
|
|
99
|
-
constructor(connectionInfo: ConnectionInfo, appConfig?: AppLogConfig);
|
|
100
|
-
}
|
|
101
|
-
export declare class CDetailLogic implements IManualDetailLog<Custom1LogicInfo> {
|
|
102
|
-
systemTimestamp: any;
|
|
103
|
-
logType: string;
|
|
104
|
-
logLevel: string;
|
|
105
|
-
namespace: string;
|
|
106
|
-
applicationName: string;
|
|
107
|
-
containerId: string;
|
|
108
|
-
sessionId: string;
|
|
109
|
-
tid: string;
|
|
110
|
-
identity?: string;
|
|
111
|
-
recordName: string;
|
|
112
|
-
custom1: Custom1LogicInfo;
|
|
113
|
-
constructor(data: any);
|
|
114
|
-
}
|
|
115
|
-
export declare class CAppLogic implements AppLogicInfo {
|
|
116
|
-
message: string;
|
|
117
|
-
source: Record<string, any>;
|
|
118
|
-
type: string;
|
|
119
|
-
constructor(data: any);
|
|
120
|
-
}
|
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CAppLogic = exports.CDetailLogic = exports.CManualConnection = exports.CManualSummary = exports.CManualDetail = exports.CDetailManaulLogWithPushSummary = void 0;
|
|
7
|
-
const app_log_config_service_1 = require("../../../config/app-log-config.service");
|
|
8
|
-
const microtime_1 = __importDefault(require("microtime"));
|
|
9
|
-
const main_1 = require("../../../main");
|
|
10
|
-
const os_1 = __importDefault(require("os"));
|
|
11
|
-
const global_function_1 = require("../../core/functions/global-function");
|
|
12
|
-
const summaryEndpoint_info_1 = require("../../../common/async-storage/summaryEndpoint-info");
|
|
13
|
-
const cauldron_dto_1 = require("./cauldron.dto");
|
|
14
|
-
const tools_1 = require("../../../utils/tools");
|
|
15
|
-
class CDetailManaulLogWithPushSummary {
|
|
16
|
-
constructor(data) {
|
|
17
|
-
data.message ??= {
|
|
18
|
-
requestObject: data.requestObject ?? {},
|
|
19
|
-
responseObject: data.responseObject ?? {},
|
|
20
|
-
};
|
|
21
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
22
|
-
const transactionRefInfo = (0, global_function_1.GetTransactionReference)();
|
|
23
|
-
const startTime = data.startTime || microtime_1.default.now();
|
|
24
|
-
const endTime = data.endTime || microtime_1.default.now();
|
|
25
|
-
if (transactionRefInfo.maskingLogData) {
|
|
26
|
-
data.message.requestObject = (0, tools_1.maskingData)(data.message.requestObject, transactionRefInfo.specificKeyMasking);
|
|
27
|
-
data.message.responseObject = (0, tools_1.maskingData)(data.message.responseObject, transactionRefInfo.specificKeyMasking);
|
|
28
|
-
}
|
|
29
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
30
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
31
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
32
|
-
this.namespace = appConfig.appName || null;
|
|
33
|
-
this.applicationName = appConfig.componentName || null;
|
|
34
|
-
this.containerId = os_1.default.hostname();
|
|
35
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
36
|
-
this.tid = transactionRefInfo.transactionId;
|
|
37
|
-
this.custom1 = new CCustomWithAutoPushSummary(data.message, {
|
|
38
|
-
startTime,
|
|
39
|
-
endTime,
|
|
40
|
-
}, data.summaryInfoAdditional);
|
|
41
|
-
if (this.custom1.addSummaryFunc) {
|
|
42
|
-
this.addSummaryFunc = this.custom1.addSummaryFunc;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.CDetailManaulLogWithPushSummary = CDetailManaulLogWithPushSummary;
|
|
47
|
-
class CCustomWithAutoPushSummary {
|
|
48
|
-
constructor(message, activityData, summaryInfoAdditional) {
|
|
49
|
-
let messageObject;
|
|
50
|
-
if (typeof message === 'string') {
|
|
51
|
-
messageObject = JSON.parse(message);
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
messageObject = message;
|
|
55
|
-
}
|
|
56
|
-
const externalInfoStore = (0, global_function_1.GetExternalTransactionInfo)();
|
|
57
|
-
this.requestObject = JSON.stringify(messageObject.requestObject);
|
|
58
|
-
this.responseObject = JSON.stringify(messageObject.responseObject);
|
|
59
|
-
this.activityLog = new cauldron_dto_1.CActivityLog(activityData);
|
|
60
|
-
this.endPointName = externalInfoStore.dependency;
|
|
61
|
-
this.subSessionId = externalInfoStore.subSessionId;
|
|
62
|
-
const externalInfo = (0, global_function_1.GetExternalTransactionInfo)();
|
|
63
|
-
if (summaryInfoAdditional) {
|
|
64
|
-
this.addSummaryFunc = () => {
|
|
65
|
-
(0, summaryEndpoint_info_1.pushSummaryInfo)({
|
|
66
|
-
endPointName: externalInfo.dependency,
|
|
67
|
-
endPointURL: summaryInfoAdditional.url,
|
|
68
|
-
processTime: this.activityLog.processTime,
|
|
69
|
-
responseStatus: summaryInfoAdditional.statusCode,
|
|
70
|
-
});
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
class CManualDetail {
|
|
76
|
-
constructor(transactionRefInfo, detail) {
|
|
77
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
78
|
-
const startTime = transactionRefInfo.serviceStartTime || microtime_1.default.now();
|
|
79
|
-
const endTime = microtime_1.default.now();
|
|
80
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
81
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
82
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
83
|
-
this.namespace = appConfig.appName || null;
|
|
84
|
-
this.applicationName = appConfig.componentName || null;
|
|
85
|
-
this.containerId = os_1.default.hostname();
|
|
86
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
87
|
-
this.tid = transactionRefInfo.transactionId;
|
|
88
|
-
this.custom1 = {
|
|
89
|
-
requestObject: JSON.stringify(detail.request),
|
|
90
|
-
responseObject: JSON.stringify(detail.response),
|
|
91
|
-
activityLog: new cauldron_dto_1.CActivityLog({ startTime, endTime }),
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
exports.CManualDetail = CManualDetail;
|
|
96
|
-
class CManualSummary {
|
|
97
|
-
constructor(transactionRefInfo, detail) {
|
|
98
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
99
|
-
const startTime = transactionRefInfo.serviceStartTime || microtime_1.default.now();
|
|
100
|
-
const endTime = detail.serviceEndTime || microtime_1.default.now();
|
|
101
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
102
|
-
this.logType = cauldron_dto_1.LogType.SUMMARY;
|
|
103
|
-
this.namespace = appConfig.appName || null;
|
|
104
|
-
this.applicationName = appConfig.componentName || null;
|
|
105
|
-
this.containerId = os_1.default.hostname();
|
|
106
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
107
|
-
this.tid = transactionRefInfo.transactionId;
|
|
108
|
-
this.cmdName = transactionRefInfo.recordName;
|
|
109
|
-
this.resultCode = detail.resultCodeFormat.resultCode;
|
|
110
|
-
this.resultDesc = detail.resultCodeFormat.resultDescription;
|
|
111
|
-
this.reqTimestamp = `${(0, main_1.dayJs)((0, tools_1.changeMicroToMilli)(startTime)).format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
112
|
-
this.resTimestamp = `${(0, main_1.dayJs)((0, tools_1.changeMicroToMilli)(endTime)).format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
113
|
-
this.usageTime = (0, tools_1.calculateDifferentTimeMicroToMilli)(startTime, endTime);
|
|
114
|
-
this.custom = (0, global_function_1.GetCurrentEndpointSummaryLocal)();
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.CManualSummary = CManualSummary;
|
|
118
|
-
class CManualConnection {
|
|
119
|
-
constructor(connectionInfo, appConfig) {
|
|
120
|
-
appConfig ??= app_log_config_service_1.AppLogConfigService.getConfig();
|
|
121
|
-
const transactionInfo = (0, global_function_1.GetTransactionReference)();
|
|
122
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
123
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
124
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
125
|
-
this.namespace = appConfig.appName || null;
|
|
126
|
-
this.applicationName = appConfig.componentName || null;
|
|
127
|
-
this.containerId = os_1.default.hostname();
|
|
128
|
-
this.sessionId = transactionInfo.sessionId || null;
|
|
129
|
-
this.tid = transactionInfo.transactionId || null;
|
|
130
|
-
this.recordName = transactionInfo.recordName || null;
|
|
131
|
-
this.custom1 = {
|
|
132
|
-
information: connectionInfo,
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
exports.CManualConnection = CManualConnection;
|
|
137
|
-
class CDetailLogic {
|
|
138
|
-
constructor(data) {
|
|
139
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
140
|
-
const transactionRefInfo = (0, global_function_1.GetTransactionReference)();
|
|
141
|
-
const startTime = data.startTime || microtime_1.default.now();
|
|
142
|
-
const endTime = data.endTime || microtime_1.default.now();
|
|
143
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
144
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
145
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
146
|
-
this.namespace = appConfig.appName || null;
|
|
147
|
-
this.applicationName = appConfig.componentName || null;
|
|
148
|
-
this.containerId = os_1.default.hostname();
|
|
149
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
150
|
-
this.tid = transactionRefInfo.transactionId;
|
|
151
|
-
this.recordName = transactionRefInfo.recordName;
|
|
152
|
-
try {
|
|
153
|
-
this.custom1 = {
|
|
154
|
-
activity: new cauldron_dto_1.CActivityLog({ startTime, endTime }),
|
|
155
|
-
appLogic: new CAppLogic(data),
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
catch (e) {
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
exports.CDetailLogic = CDetailLogic;
|
|
163
|
-
class CAppLogic {
|
|
164
|
-
constructor(data) {
|
|
165
|
-
if (typeof data.message === 'string') {
|
|
166
|
-
try {
|
|
167
|
-
const jsonInfo = JSON.parse(data.message);
|
|
168
|
-
this.message = jsonInfo.message || {};
|
|
169
|
-
this.source = jsonInfo.source || 'none';
|
|
170
|
-
this.type = jsonInfo.type || 'none';
|
|
171
|
-
}
|
|
172
|
-
catch (e) { }
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
const logicInfo = data.appLogic || {};
|
|
176
|
-
this.message = logicInfo.message || 'none';
|
|
177
|
-
this.source = logicInfo.source || {};
|
|
178
|
-
this.type = logicInfo.type || 'none';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
exports.CAppLogic = CAppLogic;
|
|
183
|
-
//# sourceMappingURL=cauldron-manual.dto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cauldron-manual.dto.js","sourceRoot":"","sources":["../../../../src/logger/cloudron/dtos/cauldron-manual.dto.ts"],"names":[],"mappings":";;;;;;AAAA,mFAA6E;AAI7E,0DAAkC;AAClC,wCAAsC;AACtC,4CAAoB;AACpB,0EAI8C;AAC9C,6FAAqF;AACrF,iDAWwB;AAIxB,gDAG8B;AAoC9B,MAAa,+BAA+B;IAY1C,YAAY,IAAS;QACnB,IAAI,CAAC,OAAO,KAAK;YACf,aAAa,EAAE,IAAI,CAAC,aAAa,IAAI,EAAE;YACvC,cAAc,EAAE,IAAI,CAAC,cAAc,IAAI,EAAE;SAC1C,CAAC;QAEF,MAAM,SAAS,GAAG,4CAAmB,CAAC,SAAS,EAAE,CAAC;QAClD,MAAM,kBAAkB,GAAG,IAAA,yCAAuB,GAAE,CAAC;QACrD,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,mBAAS,CAAC,GAAG,EAAE,CAAC;QACpD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,IAAI,mBAAS,CAAC,GAAG,EAAE,CAAC;QAEhD,IAAI,kBAAkB,CAAC,cAAc,EAAE,CAAC;YACtC,IAAI,CAAC,OAAO,CA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@@
|
|
|
1
|
-
import { CommonOperationStatus } from '../../../common/dto/result.dto';
|
|
2
|
-
import { RequestHTTPFormat } from '../../aicf/dtos/aicf.dto';
|
|
3
|
-
export declare class CSummaryLog implements ISummaryLog {
|
|
4
|
-
systemTimestamp: any;
|
|
5
|
-
logType: string;
|
|
6
|
-
namespace: string;
|
|
7
|
-
applicationName: string;
|
|
8
|
-
containerId: string;
|
|
9
|
-
sessionId: string | string[];
|
|
10
|
-
tid: string | string[];
|
|
11
|
-
identity: string;
|
|
12
|
-
cmdName: string;
|
|
13
|
-
resultCode: string;
|
|
14
|
-
resultDesc: string;
|
|
15
|
-
reqTimestamp: string;
|
|
16
|
-
resTimestamp: string;
|
|
17
|
-
usageTime: number;
|
|
18
|
-
custom: any;
|
|
19
|
-
custom2?: ILogCustom2;
|
|
20
|
-
constructor(req: RequestHTTPFormat, res: CommonOperationStatus, activityData: ActivityData);
|
|
21
|
-
}
|
|
22
|
-
export declare class CDetailLog implements IDetailLog {
|
|
23
|
-
systemTimestamp: any;
|
|
24
|
-
logType: string;
|
|
25
|
-
logLevel: string;
|
|
26
|
-
namespace: string;
|
|
27
|
-
applicationName: string;
|
|
28
|
-
containerId: string;
|
|
29
|
-
sessionId: string | string[];
|
|
30
|
-
tid: string | string[];
|
|
31
|
-
identity: string;
|
|
32
|
-
custom1: ILogCustom;
|
|
33
|
-
constructor(req: RequestHTTPFormat, res: any, activityData: ActivityData);
|
|
34
|
-
}
|
|
35
|
-
export declare class CDetailEndpointLog implements EDetailLog {
|
|
36
|
-
systemTimestamp: any;
|
|
37
|
-
logType: string;
|
|
38
|
-
logLevel: string;
|
|
39
|
-
namespace: string;
|
|
40
|
-
applicationName: string;
|
|
41
|
-
containerId: string;
|
|
42
|
-
sessionId: string | string[];
|
|
43
|
-
tid: string | string[];
|
|
44
|
-
identity: string;
|
|
45
|
-
custom1: ELogCustom;
|
|
46
|
-
constructor(request: any, response: any, activityData: ActivityData, endpointData: EndpointData);
|
|
47
|
-
}
|
|
48
|
-
export interface LogDetailEndpointCloudron {
|
|
49
|
-
systemTimestamp: any;
|
|
50
|
-
logType: string;
|
|
51
|
-
logLevel: string;
|
|
52
|
-
namespace: string;
|
|
53
|
-
applicationName: string;
|
|
54
|
-
containerId: string;
|
|
55
|
-
sessionId: string | string[];
|
|
56
|
-
tid: string | string[];
|
|
57
|
-
identity: string;
|
|
58
|
-
custom1: ELogDetail;
|
|
59
|
-
}
|
|
60
|
-
export interface EndpointDetail {
|
|
61
|
-
endPointURL: string;
|
|
62
|
-
responseStatus: string;
|
|
63
|
-
processTime: number;
|
|
64
|
-
endPointName: string;
|
|
65
|
-
}
|
|
66
|
-
export interface LogSummaryEndpoint {
|
|
67
|
-
systemTimestamp: any;
|
|
68
|
-
logType: string;
|
|
69
|
-
logLevel: string;
|
|
70
|
-
namespace: string;
|
|
71
|
-
applicationName: string;
|
|
72
|
-
containerId: string;
|
|
73
|
-
sessionId: string | string[];
|
|
74
|
-
tid: string | string[];
|
|
75
|
-
identity: string;
|
|
76
|
-
custom1: any;
|
|
77
|
-
method: string;
|
|
78
|
-
url: string;
|
|
79
|
-
headers: any;
|
|
80
|
-
endpointName: string;
|
|
81
|
-
}
|
|
82
|
-
export declare class CActivityLog implements IActivityLog {
|
|
83
|
-
startTime: string;
|
|
84
|
-
endTime: string;
|
|
85
|
-
processTime: number;
|
|
86
|
-
constructor(activityData: ActivityData);
|
|
87
|
-
}
|
|
88
|
-
export declare class CActivityLogNews implements IActivityLog {
|
|
89
|
-
startTime: string;
|
|
90
|
-
endTime: string;
|
|
91
|
-
processTime: number;
|
|
92
|
-
constructor(start: any, end: any);
|
|
93
|
-
}
|
|
94
|
-
interface ISummaryLog {
|
|
95
|
-
systemTimestamp: Date;
|
|
96
|
-
logType: string;
|
|
97
|
-
namespace: string;
|
|
98
|
-
applicationName: string;
|
|
99
|
-
containerId: string;
|
|
100
|
-
sessionId: string | string[];
|
|
101
|
-
tid: string | string[];
|
|
102
|
-
identity: string;
|
|
103
|
-
cmdName: string;
|
|
104
|
-
resultCode: string;
|
|
105
|
-
resultDesc: string;
|
|
106
|
-
reqTimestamp: string;
|
|
107
|
-
resTimestamp: string;
|
|
108
|
-
usageTime: number;
|
|
109
|
-
custom: ILogCustom;
|
|
110
|
-
custom2?: ILogCustom2;
|
|
111
|
-
}
|
|
112
|
-
export interface IDetailLog {
|
|
113
|
-
systemTimestamp: Date;
|
|
114
|
-
logType: string;
|
|
115
|
-
logLevel: string;
|
|
116
|
-
namespace: string;
|
|
117
|
-
applicationName: string;
|
|
118
|
-
containerId: string;
|
|
119
|
-
sessionId: string | string[];
|
|
120
|
-
tid: string | string[];
|
|
121
|
-
identity: string;
|
|
122
|
-
custom1: ILogCustom;
|
|
123
|
-
}
|
|
124
|
-
interface EDetailLog {
|
|
125
|
-
systemTimestamp: string;
|
|
126
|
-
logType: string;
|
|
127
|
-
logLevel: string;
|
|
128
|
-
namespace: string;
|
|
129
|
-
applicationName: string;
|
|
130
|
-
containerId: string;
|
|
131
|
-
sessionId: string | string[];
|
|
132
|
-
tid: string | string[];
|
|
133
|
-
identity: string;
|
|
134
|
-
custom1: ELogCustom;
|
|
135
|
-
}
|
|
136
|
-
export interface ILogCustom {
|
|
137
|
-
endPointSummary?: string[];
|
|
138
|
-
requestObject?: string;
|
|
139
|
-
responseObject?: string;
|
|
140
|
-
activityLog?: IActivityLog;
|
|
141
|
-
}
|
|
142
|
-
interface ELogCustom extends ILogCustom {
|
|
143
|
-
endPointName: string;
|
|
144
|
-
}
|
|
145
|
-
export interface ILogCustom2 {
|
|
146
|
-
'x-session-path': string;
|
|
147
|
-
}
|
|
148
|
-
export interface ELogDetail {
|
|
149
|
-
requestObject?: string;
|
|
150
|
-
responseObject?: string;
|
|
151
|
-
activityLog?: CActivityLogNews;
|
|
152
|
-
endPointName: string;
|
|
153
|
-
subSessionId: string;
|
|
154
|
-
}
|
|
155
|
-
export interface IActivityLog {
|
|
156
|
-
startTime: string;
|
|
157
|
-
endTime: string;
|
|
158
|
-
processTime: number;
|
|
159
|
-
}
|
|
160
|
-
export interface ActivityData {
|
|
161
|
-
startTime: number;
|
|
162
|
-
endTime: number;
|
|
163
|
-
}
|
|
164
|
-
export interface EndpointData {
|
|
165
|
-
endpointName: string;
|
|
166
|
-
subSessionId: string;
|
|
167
|
-
sessionId: string;
|
|
168
|
-
}
|
|
169
|
-
export declare enum LogType {
|
|
170
|
-
SUMMARY = "Summary",
|
|
171
|
-
DETAIL = "Detail"
|
|
172
|
-
}
|
|
173
|
-
export declare enum LogLevel {
|
|
174
|
-
INFO = "INFO",
|
|
175
|
-
ERROR = "ERROR"
|
|
176
|
-
}
|
|
177
|
-
export interface CloudronCustomLogsData {
|
|
178
|
-
startTime: number;
|
|
179
|
-
endPointName: string;
|
|
180
|
-
subSessionId: string;
|
|
181
|
-
}
|
|
182
|
-
export {};
|