feat: 增加结构化请求日志

- src/common/logging: 新增 Pino 结构化日志服务和 HTTP 请求日志拦截器
- src/main.ts: 全局接入请求日志并保留响应 envelope
- package.json: 增加 pino 运行时依赖
This commit is contained in:
湛兮
2026-06-12 05:40:18 +08:00
parent dea6cfd7fe
commit e420968d5f
6 changed files with 300 additions and 1 deletions
+1
View File
@@ -30,6 +30,7 @@
"@nestjs/platform-express": "^11.1.6",
"@nestjs/swagger": "^11.2.0",
"@prisma/client": "^6.14.0",
"pino": "^10.3.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.2",
"zod": "^4.0.17"