feat: expose backend debug log endpoints

This commit is contained in:
2026-04-02 23:51:44 +08:00
parent 9ec25b94f1
commit 98839e9782
5 changed files with 36 additions and 2 deletions

View File

@@ -45,7 +45,14 @@ CKWK_DEBUG_SKIP_SSL_VERIFY=true
调试日志 WS 仅在 `debug` 模式开启,连接地址:
```shell
ws://127.0.0.1:8080/api/debug/ws/logs
ws://127.0.0.1:8080/api/debug/logs/ws
```
调试日志快照和下载接口:
```shell
GET /api/debug/logs
GET /api/debug/logs/download
```
服务端会保留最近 1000 条内存日志,并持续推送新的入站 HTTP、出站请求和应用日志。