feat: expose backend debug log endpoints
This commit is contained in:
@@ -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、出站请求和应用日志。
|
||||
|
||||
Reference in New Issue
Block a user