# 日志详解

日志页面显示的是QX启动以后http请求中脚本运行的记录。

在日志栏目上长按可以进入二级菜单日志文件，里面保存的是一些近期的日志，可以在里面进行日志级别的设置。

见下面示意图

<figure><img src="/files/K1iuFnYjzsnQ99LsR5tJ" alt=""><figcaption></figcaption></figure>

日志级别有：Error、Warning、info、Debug 四个等级。

> **Error**
>
> 错误级别,用于记录脚本运行时产生的错误。这是最高级别的日志,需要开发者及时查看和修复错误。
>
> **Warning**
>
> 警告级别,用于记录非错误但需要注意的警告信息。警告信息可能表示存在潜在问题,但不会直接终止脚本执行。
>
> **Info**
>
> 信息级别,用于记录脚本运行时的一般性信息和日志。这是默认的日志级别,可以收集脚本执行情况和进度等有用信息。
>
> **Debug**
>
> 调试级别,用于记录详细的调试信息,方便开发者测试和修复脚本。这是一个比较低级别的日志,只在需要进行脚本调试时开启。
>
> 不同级别的日志包含的信息不同,设置合适的日志级别可以避免日志过多或不足。理解这些日志级别的区别可以帮助更好地开发和调试Quantumult X脚本。


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://qx.atlucky.me/shi-yong-fang-fa/ri-zhi-xiang-jie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
