Skip to content

Commit 37b32ae

Browse files
committed
feat(logger): replace custom logger with winston 📝
- Replace custom logger implementation (376 lines) with winston library - Add winston and winston-daily-rotate-file dependencies - Support CLOUDBASE_LOG_DIR environment variable for custom log directory - Maintain backward compatibility with existing logger API (debug, info, warn, error) - Remove complex logging features (getLogs, getLoggerStatus, clearLogs) from interactive-server - Implement daily log rotation with automatic cleanup (30 days retention) - Improve log format: [timestamp] [LEVEL] message {data} - Simplify codebase and improve maintainability
1 parent 4d2e25f commit 37b32ae

File tree

4 files changed

+206
-968
lines changed

4 files changed

+206
-968
lines changed

mcp/package-lock.json

Lines changed: 84 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mcp/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@
7070
"open": "^10.1.2",
7171
"punycode": "^2.3.1",
7272
"unzipper": "^0.12.3",
73+
"winston": "^3.15.0",
74+
"winston-daily-rotate-file": "^5.0.0",
7375
"ws": "^8.18.2",
7476
"zod": "^3.24.3"
7577
},

0 commit comments

Comments
 (0)