> For the complete documentation index, see [llms.txt](https://docs.convai.com/api-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/editor-window/export-diagnostic-logs.md).

# 导出诊断日志

从 Unreal Editor 导出 Convai 诊断信息，并将生成的日志包附加到 Convai Developer Forum 支持请求中。

Convai 编辑器窗口提供了用于检查插件更新和导出诊断信息的支持工具。请使用 **导出日志** 在 Convai 开发者论坛发帖前导出日志，以便报告中包含 Unreal Engine 日志、Convai 插件日志、崩溃报告、配置文件和环境详情。

### 前提条件

* 在 Unreal Engine 5.2 或更高版本中安装并启用 Convai Unreal Engine 插件。完整的 Convai 编辑器窗口界面在较早的 Unreal Engine 5 版本中不可用。
* 可通过以下方式打开 Convai 编辑器窗口： **窗口 > Convai > 打开 Convai 编辑器** 或点击 **Convai 编辑器** 工具栏按钮。
* 需要与 Convai 支持团队分享一个可复现的问题、错误消息或支持请求。

### 检查插件更新

导出日志前，请检查是否有更新的插件版本可用。更新检查会将已安装的插件版本与 GitHub 上的最新版本进行比较。

{% stepper %}
{% step %}

#### 打开设置菜单

打开 Convai 编辑器窗口，然后点击右上角的设置图标。
{% endstep %}

{% step %}

#### 点击“检查更新”

点击 **检查更新**。在插件检查 GitHub 时，Unreal 编辑器会显示通知。
{% endstep %}

{% step %}

#### 查看结果

如果有可用更新，通知会显示当前版本、可用版本以及版本发布页面的链接。如果没有可用更新，通知会确认已安装当前稳定版本。
{% endstep %}
{% endstepper %}

### 导出日志

{% stepper %}
{% step %}

#### 打开 Convai 编辑器窗口

点击 **Convai 编辑器** （位于关卡编辑器工具栏中），或选择 **窗口 > Convai > 打开 Convai 编辑器**.
{% endstep %}

{% step %}

#### 点击设置图标

点击编辑器窗口右上角的 **⚙️** 图标。此时会出现一个下拉菜单，其中包含 **导出日志** 和 **检查更新**.
{% endstep %}

{% step %}

#### 点击“导出日志”

点击 **导出日志** （位于下拉菜单中）。
{% endstep %}

{% step %}

#### 接受隐私声明

此时会显示一个标题为 **导出日志 - 隐私声明** 的隐私声明对话框。阅读声明并接受以继续。如果拒绝，导出操作将取消。
{% endstep %}
{% endstepper %}

导出将在后台运行。进度通知会显示 **正在导出日志...请稍候，我们正在打包日志文件。**

{% hint style="success" %}
导出完成后，通知会变为 **日志导出成功** 并显示文件数量和压缩包大小。系统文件浏览器会打开生成的压缩包所在位置。如果未打开，请检查 `<ProjectRoot>/Saved/ConvaiLogExports/`.
{% endhint %}

### 压缩包内容

| 项目          | 备注                                                                                        |
| ----------- | ----------------------------------------------------------------------------------------- |
| Convai 插件日志 | 最近的 `.log` 个文件，来自 `<ProjectRoot>/Saved/ConvaiLogs/`                                       |
| 虚幻引擎日志      | 最近 `.log` 个文件，来自 `<ProjectRoot>/Saved/Logs/`                                              |
| 崩溃报告        | `.log`, `.txt`和 `.xml` 来自以下路径下最多五个最近文件夹的文件： `<ProjectRoot>/Saved/Crashes/`                |
| 配置文件        | 所选项目和插件的配置文件，包括 `DefaultEngine.ini`, `DefaultGame.ini`和 `ConvaiEditorSettings.ini` （如果存在） |
| 项目信息        | 项目名称、虚幻引擎版本、插件元数据和项目配置                                                                    |
| 系统信息        | 操作系统、CPU、GPU、内存、屏幕、区域设置和语言信息                                                              |
| 网络和性能数据     | 网络适配器信息、会话运行时间、FPS 和内存使用统计信息                                                              |

{% hint style="info" %}
导出包会在本地计算机上创建，不会自动上传。附加文件前，请检查您发布的支持帖子。
{% endhint %}

### 在开发者论坛分享此软件包

打开 Convai 编辑器窗口，点击 **支持**，然后选择 **Convai 开发者论坛**。创建论坛帖子时，请提供：

* 虚幻引擎版本和 Convai 插件版本。
* 您预期发生的情况。
* 实际发生的情况。
* 能够重现问题的最简步骤。
* 虚幻编辑器中显示的任何确切输出日志消息。
* 从“ **导出日志**.

### 故障排查

#### 导出失败

**症状：** 进度通知变为 **日志导出失败**.

**原因：** 导出器无法创建软件包文件夹、复制收集的文件、写入清单或元数据，或者创建压缩包。

**解决方法：** 确保项目 `Saved/` 目录可写，然后再次尝试导出。如果问题仍然存在，请从以下位置手动收集日志： `<ProjectRoot>/Saved/Logs/` 并将其附加到您的支持工单中。

**验证：** 通知变为 **日志已成功导出** 并且文件资源管理器会打开到程序包所在位置。

#### 未找到日志文件

**症状：** 导出失败，并显示 `No log files found to export`.

**原因：** 导出器在近期的 Convai 日志、虚幻引擎日志、崩溃报告或所选配置文件中未找到可打包的文件。

**解决方法：** 在编辑器中重现一次问题；如有需要，请保存项目以确保配置文件存在，然后再次运行 **导出日志** 。

**验证：** 生成的程序包中包含日志文件和元数据。

#### 更新检查失败

**症状：** 通知显示 **更新检查失败**.

**原因：** 虚幻编辑器无法访问 GitHub Releases，或者更新检查服务无法完成请求。

**解决方法：** 确认网络连接正常，并允许虚幻编辑器通过 HTTPS 访问 GitHub。重试 **检查更新**.

**验证：** 通知会报告有可用更新，或确认当前安装的版本已是最新版本。

### 后续步骤

{% content-ref url="/pages/2c318643919de48c794a1f4b6b1eb25b6e0ed166" %}
[故障排查](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/troubleshooting.md)
{% endcontent-ref %}

{% content-ref url="/pages/76a35097e5aafc7db6e701235cba4c330c02ad3a" %}
[诊断和日志导出](https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/troubleshooting/diagnostics-and-log-export.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.convai.com/api-docs/zh/cha-jian-yu-ji-cheng/convai-unreal-engine-plugin/editor-window/export-diagnostic-logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
