-
Notifications
You must be signed in to change notification settings - Fork 11.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: V6.24 tun 模式下能够显示 singbox 的实时日志 #3881
Comments
日志等级是什么? |
日志等级是 Warning,启动 tun 模式后完全没有日志的输出 |
把配置文件guiNconfig发出来 |
晚一点发给您,我现在暂时没有电脑 还有我在 #3915 中回复您了,希望您能看一下我描述的场景 |
|
singbox 的错误日志可以实时显示 我观察了一下纯 singbox 的命令窗口,命令窗口似乎也没有实时域名解析日志,只有实时错误日志。所以这应该是 singbox 的问题。但我希望在tun模式下也能看到实时域名解析日志,大佬看看有没有什么解决办法 |
纯 singbox 的命令窗口 你能发个截图嘛? 指你在cmd下运行sing-box.exe加载配置?但是你用v2rayN如果是这样,就是手动运行Singbox。现在的版本并不会单独有cmd窗口出来了。要不你细说下了?》 |
我说的不太清楚,不好意思啊。 “纯 singbox 命令窗口”是在 cmd 下直接加载 singbox,此时v2rayN 没有运行。配置文件用的是 v2rayN 开启 tun 模式下生成的配置文件 我把 cmd 的输出和 v2rayN 的输出进行了比较,发现二者差不多,只输出实时错误信息,并没有实时域名解析日志。 之后我在配置文件指定了 singbox 的日志输出位置,并在 cmd 再次运行 singbox。发现在仍然不输出实时域名解析日志,只输出实时错误信息。之后我又把日志的级别改成了 我发现停止 singbox 之后,指定的日志目录下生成的日志含有域名解析日志,所以 singbox 内核是有能力输出域名解析日志的,只是我们的配置没有让他实时输出出来。因此我个人认为,目前 singbox 配置文件中的日志模块存在一些问题。 我查看了 singbox 的官方文档,似乎没找到设置实时日志输出的模块(有可能是我看漏了)。麻烦大佬们看看如何能让 singbox 实时输出域名解析的日志,这样就能解决这个 issue 了。 |
那个作者要你的配置是指sing-box的配置。我看了你上面的发言,1是问下你
配置确定是TUN模式版本的吧。 你可以有空附上配置(也可以不) 因为sing-box无论在tun或http socks代理时 日志输出是没问题的。至于你的问题我们要看你的配置,你是在什么环境下用,看到东西才能给你分析。 需要你对sing-box在httpsocks代理或TUN(透明代理)环境 2种环境处理DNS流程配置你很熟悉的话。 sing-box文档没细讲。 我看sing-box日志如果要排查问题,我是用trace 这级别。我的经验记忆中sing-box的日志 如果用到了它内置DNS部分的DNS解析了都是有记录完整的。 |
@2dust 大力使用sing-box后,真咨询量(人数)sing-box配置原理的,直线上升了,我目测了下你这比Xray sing-box群接到的量还多了 |
我今天晚些时候会把配置发过来,现在电脑不在身边 singbox会保存完整的DNS解析记录,但是在tun模式下目前并不能让他像Xray那样实时输出出来 我不清楚在httpsocks的模式下会不会实时输出解析记录,我晚一点会试一下。 如果实在没法让singbox内核在tun模式下实时输出解析日志,我会到singbox的仓库那边提issue |
|
你用上面的sb tun配置在WIN下用CMD窗口(要管理员权限打开) sb要管理员权限,运行试试 我日志级别是trace我没用输出到文件。这样观察到的。 |
我设置的是 debug,可以在日志文件里面找到这样的的域名解析日志:
|
这些日志是正常的。 |
是的,但是这些东西没法像Xray那样实时输出出来。 |
你意思是你用cmd运行Sing-box这些日志能正常输出 你用v2rayN开TUN,这些日志在v2rayN的日志窗口没实时输出 ? |
之前说过啊,两种情况下都没法正常输出 所以我想请求各位大佬看看如何配置,才能让singbox实时输出出来 |
我看你这句话理解就是你 |
配置文件不要写日志路径.官方文档有说明:配置了路径控制台就不会显示 |
相关问题
在 V6.24 版本中,开启 tun 模式后,软件的日志框内不会出现 singbox 的实时日志。希望在 tun 模式下能够显示 singbox 的实时日志。
描述你希望的解决方案
在 tun 模式下能够显示 singbox 的实时日志。
我确认已查询历史issues
The text was updated successfully, but these errors were encountered: