@icd-iot-aicf/nestjs-logger 4.0.0-experimental.1 → 4.0.0
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/README.md +32 -0
- package/UPGRADE_TO_V4.md +112 -0
- package/dist/formats/aicf/aicf-endpoint.service.js +1 -0
- package/dist/formats/aicf/aicf-endpoint.service.js.map +1 -1
- package/dist/formats/aicf/aicf-manual.dto.d.ts +0 -8
- package/dist/formats/aicf/aicf-manual.dto.js +0 -2
- package/dist/formats/aicf/aicf-manual.dto.js.map +1 -1
- package/dist/formats/aicf/aicf-middleware.js +0 -1
- package/dist/formats/aicf/aicf-middleware.js.map +1 -1
- package/dist/formats/aicf/aicf.dto.d.ts +0 -4
- package/dist/formats/aicf/aicf.dto.js +0 -2
- package/dist/formats/aicf/aicf.dto.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/snapshot-diff.txt +0 -41
package/package.json
CHANGED
package/snapshot-diff.txt
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> @icd-iot-aicf/nestjs-logger@4.0.0-experimental.0 test:log-snapshot
|
|
3
|
-
> jest --config ./test/jest-e2e.json --testPathPatterns=log-snapshot
|
|
4
|
-
|
|
5
|
-
{"timestamp":"2026-05-12T13:23:32.9927130+07:00","recordType":"DETAIL","appName":"snapshot-app","componentName":"snapshot-comp","recordName":"SuccessEndpoint","channel":null,"instance":"MacBook-Pro","transactionId":"SNAP-AICF-001","sessionId":"1778567012991308","serviceStartTime":"2026-05-12T13:23:32.9913080+07:00","serviceEndTime":"2026-05-12T13:23:32.9920380+07:00","serviceTime":0.73,"message":"{\"requestObject\":{\"url\":\"127.0.0.1:51328/snapshot/success\",\"headers\":{\"host\":\"127.0.0.1:51328\",\"accept-encoding\":\"gzip, deflate\",\"x-ais-orderref\":\"SNAP-AICF-001\",\"connection\":\"close\"},\"method\":\"GET\",\"payload\":{},\"queryString\":{},\"routeParameters\":{}},\"responseObject\":{\"headers\":{\"x-powered-by\":\"Express\",\"content-type\":\"application/json; charset=utf-8\",\"content-length\":\"67\",\"etag\":\"W/\\\"43-ZEpYfBxBHgEjeuV0swFo6w7bJUk\\\"\"},\"payload\":{\"resultCode\":\"20000\",\"resultDescription\":\"SUCCESS\",\"httpCode\":200}}}","action":"HTTP","subAction":"GET","recordSubType":"INBOUND-OUTBOUND","level":"info","appResult":"The requested operation was successfully.","appResultCode":"20000"}
|
|
6
|
-
{"timestamp":"2026-05-12T13:23:32.9943240+07:00","level":"info","appName":"snapshot-app","componentName":"snapshot-comp","recordName":"SuccessEndpoint","recordType":"SUMMARY","channel":null,"instance":"MacBook-Pro","transactionId":"SNAP-AICF-001","sessionId":"1778567012991308","appResult":"The requested operation was successfully.","appResultCode":"20000","serviceStartTime":"2026-05-12T13:23:32.9913080+07:00","serviceEndTime":"2026-05-12T13:23:32.9920380+07:00","serviceTime":0.73}
|
|
7
|
-
{"timestamp":"2026-05-12T13:23:33.0802340+07:00","recordType":"DETAIL","appName":"snapshot-app","componentName":"snapshot-comp","recordName":"NotFoundEndpoint","channel":null,"instance":"MacBook-Pro","transactionId":"SNAP-AICF-002","sessionId":"1778567013079844","serviceStartTime":"2026-05-12T13:23:33.0798440+07:00","serviceEndTime":"2026-05-12T13:23:33.0800510+07:00","serviceTime":0.207,"message":"{\"requestObject\":{\"url\":\"127.0.0.1:51330/snapshot/not-found\",\"headers\":{\"host\":\"127.0.0.1:51330\",\"accept-encoding\":\"gzip, deflate\",\"x-ais-orderref\":\"SNAP-AICF-002\",\"connection\":\"close\"},\"method\":\"GET\",\"payload\":{},\"queryString\":{},\"routeParameters\":{}},\"responseObject\":{\"headers\":{\"x-powered-by\":\"Express\",\"content-type\":\"application/json; charset=utf-8\",\"content-length\":\"74\",\"etag\":\"W/\\\"4a-tZu/beXmjDf+vAFNN3wOw37hlOk\\\"\"},\"payload\":{\"resultCode\":\"40400\",\"resultDescription\":\"DATA_NOT_FOUND\",\"httpCode\":404}}}","action":"HTTP","subAction":"GET","recordSubType":"INBOUND-OUTBOUND","level":"info","appResult":"The requested operation was successfully.","appResultCode":"20000"}
|
|
8
|
-
{"timestamp":"2026-05-12T13:23:33.0807370+07:00","level":"info","appName":"snapshot-app","componentName":"snapshot-comp","recordName":"NotFoundEndpoint","recordType":"SUMMARY","channel":null,"instance":"MacBook-Pro","transactionId":"SNAP-AICF-002","sessionId":"1778567013079844","appResult":"The requested operation was successfully.","appResultCode":"20000","serviceStartTime":"2026-05-12T13:23:33.0798440+07:00","serviceEndTime":"2026-05-12T13:23:33.0800510+07:00","serviceTime":0.207}
|
|
9
|
-
{"timestamp":"2026-05-12T13:23:33.1655310+07:00","recordType":"DETAIL","appName":"snapshot-app","componentName":"snapshot-comp","recordName":"undefined","channel":null,"instance":"MacBook-Pro","transactionId":"snapshot-comp_2be5ee79-294f-46f8-ba67-d7980a836fdb","sessionId":"1778567013164804","serviceStartTime":"2026-05-12T13:23:33.1648040+07:00","serviceEndTime":"2026-05-12T13:23:33.1653130+07:00","serviceTime":0.509,"message":"{\"requestObject\":{\"url\":\"127.0.0.1:51332/snapshot/no-headers\",\"headers\":{\"host\":\"127.0.0.1:51332\",\"accept-encoding\":\"gzip, deflate\",\"connection\":\"close\",\"x-ais-orderref\":\"snapshot-comp_2be5ee79-294f-46f8-ba67-d7980a836fdb\"},\"method\":\"GET\",\"payload\":{},\"queryString\":{},\"routeParameters\":{}},\"responseObject\":{\"headers\":{\"x-powered-by\":\"Express\",\"content-type\":\"application/json; charset=utf-8\",\"content-length\":\"11\",\"etag\":\"W/\\\"b-Ai2R8hgEarLmHKwesT1qcY913ys\\\"\"},\"payload\":{\"ok\":true}}}","action":"HTTP","subAction":"GET","recordSubType":"INBOUND-OUTBOUND","level":"info","appResult":"The requested operation was successfully.","appResultCode":"20000"}
|
|
10
|
-
{"timestamp":"2026-05-12T13:23:33.1661440+07:00","level":"info","appName":"snapshot-app","componentName":"snapshot-comp","recordName":"undefined","recordType":"SUMMARY","channel":null,"instance":"MacBook-Pro","transactionId":"snapshot-comp_2be5ee79-294f-46f8-ba67-d7980a836fdb","sessionId":"1778567013164804","appResult":"The requested operation was successfully.","appResultCode":"20000","serviceStartTime":"2026-05-12T13:23:33.1648040+07:00","serviceEndTime":"2026-05-12T13:23:33.1653130+07:00","serviceTime":0.509}
|
|
11
|
-
{"systemTimestamp":"12/05/2026 13:23:33.259","logType":"Summary","namespace":"snapshot-app","applicationName":"snapshot-comp","containerId":"MacBook-Pro","sessionId":"1778567013258712","tid":"SNAP-CLDRON-001","cmdName":"SuccessEndpoint","resultCode":"20000","resultDesc":"The requested operation was successfully.","reqTimestamp":"12/05/2026 13:23:33.258","resTimestamp":"12/05/2026 13:23:33.258","usageTime":0.144,"custom":null}
|
|
12
|
-
{"systemTimestamp":"12/05/2026 13:23:33.259","logType":"Detail","logLevel":"INFO","namespace":"snapshot-app","applicationName":"snapshot-comp","containerId":"MacBook-Pro","sessionId":"1778567013258712","tid":"SNAP-CLDRON-001","custom1":{"requestObject":"{\"method\":\"GET\",\"url\":\"127.0.0.1:51338/snapshot/success\",\"headers\":{\"host\":\"127.0.0.1:51338\",\"accept-encoding\":\"gzip, deflate\",\"x-ais-orderref\":\"SNAP-CLDRON-001\",\"connection\":\"close\"},\"body\":{}}","responseObject":{"resultCode":"20000","resultDescription":"SUCCESS","httpCode":200},"activityLog":{"startTime":"2026-05-12T13:23:33.2587120+07:00","endTime":"2026-05-12T13:23:33.2588560+07:00","processTime":0.144}}}
|
|
13
|
-
{"systemTimestamp":"12/05/2026 13:23:33.344","logType":"Summary","namespace":"snapshot-app","applicationName":"snapshot-comp","containerId":"MacBook-Pro","sessionId":"1778567013343577","tid":"SNAP-CLDRON-002","cmdName":"NotFoundEndpoint","resultCode":"20000","resultDesc":"The requested operation was successfully.","reqTimestamp":"12/05/2026 13:23:33.343","resTimestamp":"12/05/2026 13:23:33.343","usageTime":0.196,"custom":null}
|
|
14
|
-
{"systemTimestamp":"12/05/2026 13:23:33.344","logType":"Detail","logLevel":"INFO","namespace":"snapshot-app","applicationName":"snapshot-comp","containerId":"MacBook-Pro","sessionId":"1778567013343577","tid":"SNAP-CLDRON-002","custom1":{"requestObject":"{\"method\":\"GET\",\"url\":\"127.0.0.1:51340/snapshot/not-found\",\"headers\":{\"host\":\"127.0.0.1:51340\",\"accept-encoding\":\"gzip, deflate\",\"x-ais-orderref\":\"SNAP-CLDRON-002\",\"connection\":\"close\"},\"body\":{}}","responseObject":{"resultCode":"40400","resultDescription":"DATA_NOT_FOUND","httpCode":404},"activityLog":{"startTime":"2026-05-12T13:23:33.3435770+07:00","endTime":"2026-05-12T13:23:33.3437730+07:00","processTime":0.196}}}
|
|
15
|
-
{"systemTimestamp":"12/05/2026 13:23:33.433","logType":"Summary","namespace":"snapshot-app","applicationName":"snapshot-comp","containerId":"MacBook-Pro","sessionId":"1778567013432063","tid":"snapshot-comp_05339106-0818-4cf4-8e38-6f37a82fd2c6","cmdName":"undefined","resultCode":"20000","resultDesc":"The requested operation was successfully.","reqTimestamp":"12/05/2026 13:23:33.432","resTimestamp":"12/05/2026 13:23:33.432","usageTime":0.72,"custom":null}
|
|
16
|
-
{"systemTimestamp":"12/05/2026 13:23:33.433","logType":"Detail","logLevel":"INFO","namespace":"snapshot-app","applicationName":"snapshot-comp","containerId":"MacBook-Pro","sessionId":"1778567013432063","tid":"snapshot-comp_05339106-0818-4cf4-8e38-6f37a82fd2c6","custom1":{"requestObject":"{\"method\":\"GET\",\"url\":\"127.0.0.1:51342/snapshot/no-headers\",\"headers\":{\"host\":\"127.0.0.1:51342\",\"accept-encoding\":\"gzip, deflate\",\"connection\":\"close\",\"x-ais-orderref\":\"snapshot-comp_05339106-0818-4cf4-8e38-6f37a82fd2c6\"},\"body\":{}}","responseObject":{"ok":true},"activityLog":{"startTime":"2026-05-12T13:23:33.4320630+07:00","endTime":"2026-05-12T13:23:33.4327830+07:00","processTime":0.72}}}
|
|
17
|
-
PASS test/log-snapshot.e2e-spec.ts
|
|
18
|
-
Log Snapshot — AICF format
|
|
19
|
-
✓ GET /snapshot/success — log count + structure (92 ms)
|
|
20
|
-
✓ GET /snapshot/not-found — log count + structure (85 ms)
|
|
21
|
-
✓ GET /snapshot/no-headers — log count + structure (missing correlation headers) (85 ms)
|
|
22
|
-
✓ HttpAction.GET — DTO field structure (1 ms)
|
|
23
|
-
✓ HttpAction.POST — DTO field structure (1 ms)
|
|
24
|
-
✓ DBAction.READ — DTO field structure (1 ms)
|
|
25
|
-
✓ DBAction.CREATE — DTO field structure
|
|
26
|
-
✓ LogicAction.FUNCTION — DTO field structure (1 ms)
|
|
27
|
-
✓ LogicAction.CHECKPOINT — DTO field structure
|
|
28
|
-
✓ ExceptionAction.LOG — DTO field structure (1 ms)
|
|
29
|
-
Log Snapshot — Cloudron format
|
|
30
|
-
✓ GET /snapshot/success — log count + structure (85 ms)
|
|
31
|
-
✓ GET /snapshot/not-found — log count + structure (86 ms)
|
|
32
|
-
✓ GET /snapshot/no-headers — log count + structure (missing correlation headers) (90 ms)
|
|
33
|
-
✓ HttpAction.GET — DTO field structure (3 ms)
|
|
34
|
-
✓ DBAction.UPDATE — DTO field structure (1 ms)
|
|
35
|
-
✓ LogicAction.FUNCTION — DTO field structure (1 ms)
|
|
36
|
-
|
|
37
|
-
Test Suites: 1 passed, 1 total
|
|
38
|
-
Tests: 16 passed, 16 total
|
|
39
|
-
Snapshots: 22 passed, 22 total
|
|
40
|
-
Time: 1.499 s, estimated 2 s
|
|
41
|
-
Ran all test suites matching log-snapshot.
|