|
|
il y a 2 semaines | |
|---|---|---|
| .. | ||
| data | il y a 2 semaines | |
| .env.example | il y a 2 semaines | |
| .gitignore | il y a 2 semaines | |
| README.md | il y a 2 semaines | |
| check-once.js | il y a 2 semaines | |
| check-once.sh | il y a 2 semaines | |
| run.sh | il y a 2 semaines | |
这个目录用于在本机检查远程服务器写入 SystemErrorLogs 的错误日志。
完整安装、配置、排查说明见:
doc/server_error_log_monitor.md
复制配置文件:
cp local-error-monitor/.env.example local-error-monitor/.env
编辑 local-error-monitor/.env:
ERROR_LOG_SSH_HOST=root@服务器IP
ERROR_LOG_REMOTE_API_URL=http://127.0.0.1:3050/internal/error-logs
ERROR_LOG_API_TOKEN=你的新token
在 VS Code 中:
Cmd + Shift + PTasks: Run Task检查近期服务端 Bug检查结果会显示在 VS Code Terminal,并写入:
local-error-monitor/data/recent-error-check.txt
检查状态会保存在:
local-error-monitor/data/check-state.json
下次检查只显示上次之后的新错误。
也可以直接运行:
./local-error-monitor/run.sh