feat(logging): add comprehensive API request/response logging with structured winston logs

- Add dedicated API logger (api-logger.ts) with winston daily rotation
- Create Fastify plugin (api-logging.plugin.ts) to intercept all API requests/responses
- Log request start, body, response, errors, and summary with precise timestamps
- Auto-mask sensitive data using existing sanitizeObject utility
- Register API logging plugin in NestJS bootstrap (server/main.ts)
- Add npm run dev script with cross-env for automatic DEBUG on Windows
- Install cross-env as devDependency for cross-platform env vars
This commit is contained in:
Gemini Nexus Bot committed 2026-04-22 00:07:30 -03:00
1 parent faabf7ba7a
commit 27da62afc9
5 files changed
+268 -11

No files matched your search

+2
View File
@@ -7,6 +7,7 @@
"private": true,
"scripts": {
"start": "electron-forge start",
"dev": "cross-env DEBUG=\"electron-forge:*\" electron-forge start",
"package": "electron-forge package",
"make": "electron-forge make",
"publish": "electron-forge publish",
@@ -62,6 +63,7 @@
"babel-plugin-react-compiler": "1.0.0",
"code-inspector-plugin": "^1.3.3",
"conventional-changelog-conventionalcommits": "^9.1.0",
"cross-env": "^10.1.0",
"electron": "^37.3.1",
"electron-devtools-installer": "^4.0.0",
"electron-packager-languages": "^0.6.0",