feat: added centralized winston logger with daily rotation for debugging

- Added centralized file logger with winston and daily rotation to ~/.pi/logs/ directory.
- Exposed logger property to hook and custom tool APIs for extension logging.
- Replaced silent error suppression with debug/warning logging across 20+ catch blocks.
- Removed separate Exa error logger in favor of centralized logging system.
This commit is contained in:
can1357
2026-01-03 07:38:06 +01:00
parent e86e4fc8e9
commit 0836b6d12d
33 changed files with 356 additions and 151 deletions
+3 -1
View File
@@ -53,7 +53,9 @@
"highlight.js": "^11.11.1",
"marked": "^15.0.12",
"minimatch": "^10.1.1",
"strip-ansi": "^7.1.2"
"strip-ansi": "^7.1.2",
"winston": "^3.17.0",
"winston-daily-rotate-file": "^5.0.0"
},
"devDependencies": {
"@types/diff": "^7.0.2",