FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.84k stars 1.57k forks source link

如何查看Xray的日志 #417

Closed toyo2333 closed 1 year ago

toyo2333 commented 1 year ago

Welcome

Description of the problem,screencshot would be good

我遇到了一些DNS解析的问题,怀疑是Xray引起的,希望打印日志查看。该怎么操作?

我找到了配置文件所在地,把 "log": {"dnsLog": true},

"log": null,改为了"log": {"dnsLog": true},

还需要做什么可以看到dns处理相关的日志呢》

Version of x-ui

最新版

x-ui log or xray log

没有,就是问做什么设置,以及去哪里看Xray的log

FranzKafkaYu commented 1 year ago

配置模板中添加log字段,如下所示:

"log": {
    "access": "/usr/local/x-ui/bin/access.log",
    "error": "/usr/local/x-ui/bin/error.log",
    "loglevel": " warning",
    "dnsLog": true
 },

之后你可以在/usr/local/x-ui/bin/access.log中进行查看。

toyo2333 commented 1 year ago

配置模板中添加log字段,如下所示:

"log": {
    "access": "/usr/local/x-ui/bin/access.log",
    "error": "/usr/local/x-ui/bin/error.log",
    "loglevel": " warning",
    "dnsLog": true
 },

之后你可以在/usr/local/x-ui/bin/access.log中进行查看。

设置后有日志输出了,但是打开网页后,没有任何DNS相关的日志信息。内核版本是1.7.5. 这怎么办呢?还要改哪里么