对于 AI 代理:可在 https://www.mongodb.com/zh-cn/docs/llms.txt 获取文档索引—通过在任何 URL 路径后添加 .md 可获取所有页面的 Markdown 版本。

获取 agentengine 调试日志

打印日志文件。

打印日志文件的内容。

从 agentengine debug logs list 传递文件名,或使用 --last 获取最新的日志文件。如果没有这两个选项,命令将失败。--last 会跳过当前调用自身的日志文件。输出为原始 JSON 行;--pretty 会对其进行缩进和着色。

例子:

agentengine debug logs get --last --prettyagentengine debug logs get agentengine-2026-05-13T11-43-57Z-12345.log
agentengine 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)
给本页内容打分