Commit 37b32ae
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 maintainability1 parent 4d2e25f commit 37b32ae
File tree
4 files changed
+206
-968
lines changed- mcp
- src
- utils
4 files changed
+206
-968
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments