feat: Enhance log inspection and querying capabilities for test environments

This commit is contained in:
2026-07-15 16:13:46 +08:00
parent 5a926e36fc
commit 708d779533
8 changed files with 147 additions and 34 deletions

View File

@@ -16,4 +16,17 @@
- Current info log: `/opt/service/project/shz-backend/logs/sys-info.log`
- Current user log: `/opt/service/project/shz-backend/logs/sys-user.log`
## Test: shz-test
- SSH: `root@47.111.103.66:22`
- Application: `/data/code/shz-backend/ruoyi-admin/target/ruoyi-admin.jar`
- Profile: `test`
- HTTP port: `9091`
- Main process log: `/data/code/shz-backend/logs/backend.log`
- Current error log: `/data/code/shz-backend/logs/sys-error.log`
- Current info log: `/data/code/shz-backend/logs/sys-info.log`
- Current user log: `/data/code/shz-backend/logs/sys-user.log`
The test endpoint defaults can be overridden with `SHZ_TEST_SSH_HOST`, `SHZ_TEST_SSH_PORT`, and `SHZ_TEST_LOG_DIR`.
Use only the bundled read-only viewer. Rotated files use date suffixes but are intentionally not exposed by the default script.