打印日志文件。
Synopsis
打印日志文件的内容。
从 agentengine debug logs list 传递文件名,或使用 --last 获取最新的日志文件。如果没有这两个选项,命令将失败。--last 会跳过当前调用自身的日志文件。输出为原始 JSON 行;--pretty 会对其进行缩进和着色。
例子:
agentengine debug logs get --last --prettyagentengine debug logs get agentengine-2026-05-13T11-43-57Z-12345.logagentengine debug logs get [logfile] [flags]选项
-h, --help help for get --last Print the most recent log file --pretty Indent and colorize JSON output从父命令继承的选项
--log-file string override log file path --log-level string file log verbosity (error|warn|info|debug) (default "info") --no-log disable file logging-q, --quiet silence stderr below error-v, --verbose count raise stderr verbosity (-v info, -vv debug)另请参阅
- agentengine 调试日志 - 查看 CLI 调试日志。