显示正在运行的开发代理实例中的日志。
概要
devproxy logs [options]
Options:
-f, --follow Follow log output
-n, --lines <N> Number of lines to show from the end of the log
--since <time> Show logs since timestamp (e.g. '2026-01-24T14:00:00'
or '5m' for 5 minutes ago)
--pid <pid> Show logs from a specific instance
--log-level <log-level> Level of messages to log
--no-color Disable colored output
--output <format> Output format
-h, --help Show help
用法
devproxy logs
Arguments
没有
选项
| 名称 | 说明 | 允许的值 | 默认 |
|---|---|---|---|
-f、--follow |
遵循日志输出(结尾 -f 样式) | n/a | n/a |
--lines、-n <N> |
要从日志末尾显示的行数 | 整数 | 50 |
--log-level <log-level> |
要记录的消息级别 |
Trace、Debug、Information、Warning、Error、Critical、None |
Information |
--no-color |
禁用彩色输出 | n/a | n/a |
--output <format> |
输出格式 |
Text、Json |
Text |
--pid <pid> |
按进程 ID 显示来自特定开发代理实例的日志 | 整数 | n/a |
--since <time> |
显示自时间戳或相对时间以来的日志 | timestamp 或 relative (例如 5m, 2h) |
n/a |
注解
运行多个开发代理实例(使用 --as-system-proxy false)时,请使用此选项 --pid 显示来自特定实例的日志。