feat(日志): 实现定时日志清理功能并统一服务端口为19070
- 添加每小时定时清理项目控制台日志功能,保留最新1000条且不超过24小时 - 将所有服务端口统一调整为19070,包括后端API、Nginx配置和文档 - 优化前端日志显示,支持单行折叠和点击展开 - 更新相关测试用例和部署文档
This commit is contained in:
13
openspec/changes/update-log-prune-schedule/tasks.md
Normal file
13
openspec/changes/update-log-prune-schedule/tasks.md
Normal 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`
|
||||
Reference in New Issue
Block a user