feat(日志): 实现定时日志清理功能并统一服务端口为19070

- 添加每小时定时清理项目控制台日志功能,保留最新1000条且不超过24小时
- 将所有服务端口统一调整为19070,包括后端API、Nginx配置和文档
- 优化前端日志显示,支持单行折叠和点击展开
- 更新相关测试用例和部署文档
This commit is contained in:
2026-01-22 14:06:44 +08:00
parent 4551ae5733
commit 240e708fbe
21 changed files with 472 additions and 211 deletions

View File

@@ -0,0 +1,13 @@
## 1. OpenSpec
- [x] 1.1 Add logging spec delta for scheduled log pruning
## 2. Backend
- [x] 2.1 Implement hourly log pruning with 24h TTL and 1000 limit
- [x] 2.2 Update scheduled pruning tests
## 3. Verify
- [x] 3.1 Run `npm run test`
- [x] 3.2 Run `npm run lint`