@icd-iot-aicf/nestjs-logger 2.3.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 -23
- package/dist/index.js +0 -40
- 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 -13
- package/dist/logger/aicf/middleware/aicf.middleware.js +0 -125
- 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 -179
- 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 -15
- package/dist/logger/cloudron/middleware/cloudron.middleware.js +0 -106
- 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/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 -59
- 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,125 +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.AicfMiddleware = void 0;
|
|
16
|
-
const common_1 = require("@nestjs/common");
|
|
17
|
-
const microtime_1 = __importDefault(require("microtime"));
|
|
18
|
-
const aicf_dto_1 = require("../dtos/aicf.dto");
|
|
19
|
-
const logger_service_1 = require("../../logger.service");
|
|
20
|
-
const tools_1 = require("../../../utils/tools");
|
|
21
|
-
const global_function_1 = require("../../core/functions/global-function");
|
|
22
|
-
const logger_debug_lib_service_1 = require("../../../common/service/logger-debug/logger-debug-lib.service");
|
|
23
|
-
const tools_2 = require("../../../common/helper/tools");
|
|
24
|
-
const app_log_config_service_1 = require("../../../config/app-log-config.service");
|
|
25
|
-
const tools_service_1 = require("../../../common/helper/tools.service");
|
|
26
|
-
let AicfMiddleware = class AicfMiddleware {
|
|
27
|
-
constructor(logger, loggerDebug, toolsService) {
|
|
28
|
-
this.logger = logger;
|
|
29
|
-
this.loggerDebug = loggerDebug;
|
|
30
|
-
this.toolsService = toolsService;
|
|
31
|
-
this.appLogConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
32
|
-
}
|
|
33
|
-
use(req, res, next) {
|
|
34
|
-
const startTime = microtime_1.default.now();
|
|
35
|
-
const sessionId = startTime.toString();
|
|
36
|
-
const chunks = [];
|
|
37
|
-
const originalWrite = res.write;
|
|
38
|
-
const originalEnd = res.end;
|
|
39
|
-
req.headers['x-ais-orderref'] ??= (0, tools_1.generateTID)();
|
|
40
|
-
res.write = (...args) => {
|
|
41
|
-
chunks.push(Buffer.from(args[0]));
|
|
42
|
-
return originalWrite.apply(res, args);
|
|
43
|
-
};
|
|
44
|
-
res.end = (...args) => {
|
|
45
|
-
const endTime = microtime_1.default.now();
|
|
46
|
-
if (args[0]) {
|
|
47
|
-
chunks.push(Buffer.from(args[0]));
|
|
48
|
-
}
|
|
49
|
-
this.loggerDebug.debug(`chunks: `, chunks);
|
|
50
|
-
const buffer = Buffer.concat(chunks).toString('utf8');
|
|
51
|
-
this.loggerDebug.debug(`buffer: `, buffer);
|
|
52
|
-
res.on('finish', () => {
|
|
53
|
-
const transactionReference = (0, global_function_1.GetTransactionReference)();
|
|
54
|
-
const recordName = transactionReference.recordName;
|
|
55
|
-
const requestFormat = (0, aicf_dto_1.MapRequestFormat)(req, req.headers.host);
|
|
56
|
-
if (transactionReference.requestObject.body) {
|
|
57
|
-
requestFormat.payload = transactionReference.requestObject.body;
|
|
58
|
-
}
|
|
59
|
-
const respData = (transactionReference.responseObject || buffer);
|
|
60
|
-
const response = {
|
|
61
|
-
status: res.status,
|
|
62
|
-
headers: res.getHeaders(),
|
|
63
|
-
body: typeof buffer == 'string' ? JSON.parse(buffer) : respData,
|
|
64
|
-
};
|
|
65
|
-
const responseFormat = (0, aicf_dto_1.MapResponseFormat)(response);
|
|
66
|
-
if (transactionReference.maskingLogData) {
|
|
67
|
-
requestFormat.payload = (0, tools_1.maskingData)(requestFormat.payload, transactionReference.specificKeyMasking);
|
|
68
|
-
responseFormat.payload = (0, tools_1.maskingData)(responseFormat.payload, transactionReference.specificKeyMasking);
|
|
69
|
-
}
|
|
70
|
-
let resultFormat = {};
|
|
71
|
-
if (this.appLogConfig.structureResponse) {
|
|
72
|
-
resultFormat = (0, tools_2.serializedFormatCommonOperationStatus)(responseFormat, this.appLogConfig.structureResponse);
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
resultFormat = this.toolsService.mapResultCodeResponse(responseFormat, res.statusCode);
|
|
76
|
-
}
|
|
77
|
-
this.logger.log(new aicf_dto_1.CAICFDetail({
|
|
78
|
-
resultCode: resultFormat.resultCode || '',
|
|
79
|
-
resultMessage: resultFormat.resultDescription || '',
|
|
80
|
-
action: aicf_dto_1.ACTION_TYPE.HTTP,
|
|
81
|
-
endTime: endTime,
|
|
82
|
-
logLevel: aicf_dto_1.LOG_LEVEL.INFO,
|
|
83
|
-
request: requestFormat,
|
|
84
|
-
response: responseFormat,
|
|
85
|
-
startTime: startTime,
|
|
86
|
-
sessionId: sessionId,
|
|
87
|
-
recordName: recordName,
|
|
88
|
-
subAction: req.method.toUpperCase(),
|
|
89
|
-
}));
|
|
90
|
-
this.logger.log(new aicf_dto_1.CAICFSummary({
|
|
91
|
-
resultCode: resultFormat.resultCode || '',
|
|
92
|
-
resultMessage: resultFormat.resultDescription || '',
|
|
93
|
-
endTime: endTime,
|
|
94
|
-
logLevel: aicf_dto_1.LOG_LEVEL.INFO,
|
|
95
|
-
request: requestFormat,
|
|
96
|
-
response: responseFormat,
|
|
97
|
-
startTime: startTime,
|
|
98
|
-
sessionId: sessionId,
|
|
99
|
-
recordName: recordName,
|
|
100
|
-
}));
|
|
101
|
-
});
|
|
102
|
-
res.on('error', (err) => {
|
|
103
|
-
this.loggerDebug.debug('Error in aicf middleware: ', err);
|
|
104
|
-
});
|
|
105
|
-
return originalEnd.apply(res, args);
|
|
106
|
-
};
|
|
107
|
-
(0, global_function_1.SetTransactionReference)({
|
|
108
|
-
transactionId: req.headers['x-ais-orderref'],
|
|
109
|
-
sessionId: sessionId,
|
|
110
|
-
action: aicf_dto_1.ACTION_TYPE.HTTP,
|
|
111
|
-
originSession: req.headers['x-origin-session'],
|
|
112
|
-
serviceStartTime: startTime,
|
|
113
|
-
}, () => {
|
|
114
|
-
return next();
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
exports.AicfMiddleware = AicfMiddleware;
|
|
119
|
-
exports.AicfMiddleware = AicfMiddleware = __decorate([
|
|
120
|
-
(0, common_1.Injectable)(),
|
|
121
|
-
__metadata("design:paramtypes", [logger_service_1.CustomLoggerService,
|
|
122
|
-
logger_debug_lib_service_1.LoggerDebugLibService,
|
|
123
|
-
tools_service_1.ToolsService])
|
|
124
|
-
], AicfMiddleware);
|
|
125
|
-
//# sourceMappingURL=aicf.middleware.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"aicf.middleware.js","sourceRoot":"","sources":["../../../../src/logger/aicf/middleware/aicf.middleware.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4D;AAC5D,0DAAkC;AAClC,+CA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U,EAAE,UAAU;iBACvB,CAAC,CACH,CAAC;YACJ,CAAC,CAAC,CAAC;YACH,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;gBACtB,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;YAC5D,CAAC,CAAC,CAAC;YACH,OAAO,WAAW,CAAC,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QACtC,CAAC,CAAC;QACF,IAAA,yCAAuB,EACrB;YACE,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAW;YACtD,SAAS,EAAE,SAAS;YACpB,MAAM,EAAE,sBAAW,CAAC,IAAI;YACxB,aAAa,EAAE,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAW;YACxD,gBAAgB,EAAE,SAAS;SAC5B,EACD,GAAG,EAAE;YACH,OAAO,IAAI,EAAE,CAAC;QAChB,CAAC,CACF,CAAC;IACJ,CAAC;CACF,CAAA;AAvHY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAKgB,oCAAmB;QACd,gDAAqB;QAC7B,4BAAY;GANzB,cAAc,CAuH1B"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CustomLoggerService } from '../../logger.service';
|
|
2
|
-
import { ContextService } from '../../../common/service/common/context.service';
|
|
3
|
-
import { ExternalTransactionInfo } from '../../core/functions/global-function';
|
|
4
|
-
import { AxiosError, AxiosResponse } from 'axios';
|
|
5
|
-
export declare class AicfEndpointService {
|
|
6
|
-
private readonly logger;
|
|
7
|
-
private readonly contextService;
|
|
8
|
-
constructor(logger: CustomLoggerService, contextService: ContextService);
|
|
9
|
-
modHeaderAicf(headers: any, subSessionId: string): any;
|
|
10
|
-
requestLog(request: any, subSessionId: string, externalInfo: ExternalTransactionInfo): void;
|
|
11
|
-
responseLog(response: AxiosResponse): void;
|
|
12
|
-
responseLogError(error: AxiosError): void;
|
|
13
|
-
}
|
|
@@ -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,OAAY,EAAE,YAAoB;QAC9C,MAAM,kBAAkB,GAAG,IAAA,yCAAuB,GAAE,CAAC;QACrD,OAAO,CAAC,kBAAkB,CAAC;YACzB,GAAG,kBAAkB,CAAC,SAAS,IAAI,YAAY,EAAE,CAAC;QACpD,OAAO,CAAC,gBAAgB,CAAC,GAAG,kBAAkB,CAAC,aAAa,CAAC;QAC7D,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,UAAU,CACR,OAAY,EACZ,YAAoB,EACpB,YAAqC;QAErC,MAAM,aAAa,GAAG,IAAA,2BAAgB,EAAC,OAAO,CAAC,CAAC;QAChD,IAAI,CAAC;YACH,MAAM,YAAY,GAAiB;gBACjC,OAAO,EAAE,aAAa;gBACtB,UAAU,EAAE,YAAY,CAAC,UAAU;gBACnC,YAAY,EAAE,YAAY;gBAC1B,SAAS,EAAE,mBAAS,CAAC,GAAG,EAAE;aAC3B,CAAC;YACF,IAAI,CAAC,cAAc,CAAC,GAAG,CACrB,OAAO,CA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AAA,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,179 +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
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
26
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
27
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
28
|
-
this.namespace = appConfig.appName || null;
|
|
29
|
-
this.applicationName = appConfig.componentName || null;
|
|
30
|
-
this.containerId = os_1.default.hostname();
|
|
31
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
32
|
-
this.tid = transactionRefInfo.transactionId;
|
|
33
|
-
this.custom1 = new CCustomWithAutoPushSummary(data.message, {
|
|
34
|
-
startTime,
|
|
35
|
-
endTime,
|
|
36
|
-
}, data.summaryInfoAdditional);
|
|
37
|
-
if (this.custom1.addSummaryFunc) {
|
|
38
|
-
this.addSummaryFunc = this.custom1.addSummaryFunc;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.CDetailManaulLogWithPushSummary = CDetailManaulLogWithPushSummary;
|
|
43
|
-
class CCustomWithAutoPushSummary {
|
|
44
|
-
constructor(message, activityData, summaryInfoAdditional) {
|
|
45
|
-
let messageObject;
|
|
46
|
-
if (typeof message === 'string') {
|
|
47
|
-
messageObject = JSON.parse(message);
|
|
48
|
-
}
|
|
49
|
-
else {
|
|
50
|
-
messageObject = message;
|
|
51
|
-
}
|
|
52
|
-
const externalInfoStore = (0, global_function_1.GetExternalTransactionInfo)();
|
|
53
|
-
this.requestObject = JSON.stringify(messageObject.requestObject);
|
|
54
|
-
this.responseObject = JSON.stringify(messageObject.responseObject);
|
|
55
|
-
this.activityLog = new cauldron_dto_1.CActivityLog(activityData);
|
|
56
|
-
this.endPointName = externalInfoStore.dependency;
|
|
57
|
-
this.subSessionId = externalInfoStore.subSessionId;
|
|
58
|
-
const externalInfo = (0, global_function_1.GetExternalTransactionInfo)();
|
|
59
|
-
if (summaryInfoAdditional) {
|
|
60
|
-
this.addSummaryFunc = () => {
|
|
61
|
-
(0, summaryEndpoint_info_1.pushSummaryInfo)({
|
|
62
|
-
endPointName: externalInfo.dependency,
|
|
63
|
-
endPointURL: summaryInfoAdditional.url,
|
|
64
|
-
processTime: this.activityLog.processTime,
|
|
65
|
-
responseStatus: summaryInfoAdditional.statusCode,
|
|
66
|
-
});
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
class CManualDetail {
|
|
72
|
-
constructor(transactionRefInfo, detail) {
|
|
73
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
74
|
-
const startTime = transactionRefInfo.serviceStartTime || microtime_1.default.now();
|
|
75
|
-
const endTime = microtime_1.default.now();
|
|
76
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
77
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
78
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
79
|
-
this.namespace = appConfig.appName || null;
|
|
80
|
-
this.applicationName = appConfig.componentName || null;
|
|
81
|
-
this.containerId = os_1.default.hostname();
|
|
82
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
83
|
-
this.tid = transactionRefInfo.transactionId;
|
|
84
|
-
this.custom1 = {
|
|
85
|
-
requestObject: JSON.stringify(detail.request),
|
|
86
|
-
responseObject: JSON.stringify(detail.response),
|
|
87
|
-
activityLog: new cauldron_dto_1.CActivityLog({ startTime, endTime }),
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.CManualDetail = CManualDetail;
|
|
92
|
-
class CManualSummary {
|
|
93
|
-
constructor(transactionRefInfo, detail) {
|
|
94
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
95
|
-
const startTime = transactionRefInfo.serviceStartTime || microtime_1.default.now();
|
|
96
|
-
const endTime = detail.serviceEndTime || microtime_1.default.now();
|
|
97
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
98
|
-
this.logType = cauldron_dto_1.LogType.SUMMARY;
|
|
99
|
-
this.namespace = appConfig.appName || null;
|
|
100
|
-
this.applicationName = appConfig.componentName || null;
|
|
101
|
-
this.containerId = os_1.default.hostname();
|
|
102
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
103
|
-
this.tid = transactionRefInfo.transactionId;
|
|
104
|
-
this.cmdName = transactionRefInfo.recordName;
|
|
105
|
-
this.resultCode = detail.resultCodeFormat.resultCode;
|
|
106
|
-
this.resultDesc = detail.resultCodeFormat.resultDescription;
|
|
107
|
-
this.reqTimestamp = `${(0, main_1.dayJs)((0, tools_1.changeMicroToMilli)(startTime)).format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
108
|
-
this.resTimestamp = `${(0, main_1.dayJs)((0, tools_1.changeMicroToMilli)(endTime)).format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
109
|
-
this.usageTime = (0, tools_1.calculateDifferentTimeMicroToMilli)(startTime, endTime);
|
|
110
|
-
this.custom = (0, global_function_1.GetCurrentEndpointSummaryLocal)();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.CManualSummary = CManualSummary;
|
|
114
|
-
class CManualConnection {
|
|
115
|
-
constructor(connectionInfo, appConfig) {
|
|
116
|
-
appConfig ??= app_log_config_service_1.AppLogConfigService.getConfig();
|
|
117
|
-
const transactionInfo = (0, global_function_1.GetTransactionReference)();
|
|
118
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
119
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
120
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
121
|
-
this.namespace = appConfig.appName || null;
|
|
122
|
-
this.applicationName = appConfig.componentName || null;
|
|
123
|
-
this.containerId = os_1.default.hostname();
|
|
124
|
-
this.sessionId = transactionInfo.sessionId || null;
|
|
125
|
-
this.tid = transactionInfo.transactionId || null;
|
|
126
|
-
this.recordName = transactionInfo.recordName || null;
|
|
127
|
-
this.custom1 = {
|
|
128
|
-
information: connectionInfo,
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
exports.CManualConnection = CManualConnection;
|
|
133
|
-
class CDetailLogic {
|
|
134
|
-
constructor(data) {
|
|
135
|
-
const appConfig = app_log_config_service_1.AppLogConfigService.getConfig();
|
|
136
|
-
const transactionRefInfo = (0, global_function_1.GetTransactionReference)();
|
|
137
|
-
const startTime = data.startTime || microtime_1.default.now();
|
|
138
|
-
const endTime = data.endTime || microtime_1.default.now();
|
|
139
|
-
this.systemTimestamp = `${(0, main_1.dayJs)().format('DD/MM/YYYY HH:mm:ss.SSS')}`;
|
|
140
|
-
this.logType = cauldron_dto_1.LogType.DETAIL;
|
|
141
|
-
this.logLevel = cauldron_dto_1.LogLevel.INFO;
|
|
142
|
-
this.namespace = appConfig.appName || null;
|
|
143
|
-
this.applicationName = appConfig.componentName || null;
|
|
144
|
-
this.containerId = os_1.default.hostname();
|
|
145
|
-
this.sessionId = transactionRefInfo.sessionId;
|
|
146
|
-
this.tid = transactionRefInfo.transactionId;
|
|
147
|
-
this.recordName = transactionRefInfo.recordName;
|
|
148
|
-
try {
|
|
149
|
-
this.custom1 = {
|
|
150
|
-
activity: new cauldron_dto_1.CActivityLog({ startTime, endTime }),
|
|
151
|
-
appLogic: new CAppLogic(data),
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
exports.CDetailLogic = CDetailLogic;
|
|
159
|
-
class CAppLogic {
|
|
160
|
-
constructor(data) {
|
|
161
|
-
if (typeof data.message === 'string') {
|
|
162
|
-
try {
|
|
163
|
-
const jsonInfo = JSON.parse(data.message);
|
|
164
|
-
this.message = jsonInfo.message || {};
|
|
165
|
-
this.source = jsonInfo.source || 'none';
|
|
166
|
-
this.type = jsonInfo.type || 'none';
|
|
167
|
-
}
|
|
168
|
-
catch (e) { }
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
const logicInfo = data.appLogic || {};
|
|
172
|
-
this.message = logicInfo.message || 'none';
|
|
173
|
-
this.source = logicInfo.source || {};
|
|
174
|
-
this.type = logicInfo.type || 'none';
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.CAppLogic = CAppLogic;
|
|
179
|
-
//# 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,C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