OneXray 作者:开发分支在新 VPN 会话前自动清理托管日志

在 iOS 日志清理需求中,yiguodev 表示,dev-26.11.2-3 分支采用每次新 VPN 会话启动前自动清理访问日志和错误日志的方案,不增加两个单独的清空按钮。节点、订阅、DNS 和路由设置不受影响,日志开启时会继续记录新会话,已导出的副本保留;用户可断开再连接以清理累积日志。日志查看器也会在新会话开始时重置。该改动不包含单次持续连接中的按大小轮转。

作者原文

Addressed on the dev-26.11.2-3 branch with automatic cleanup before each new VPN session, rather than separate per-file clear buttons.

Both managed access and error logs are cleared before the new VPN session starts, without removing servers, subscriptions, DNS or routing settings. Logging continues for the new session when enabled. To clear accumulated logs, disconnect and reconnect the VPN; exported copies are kept. This does not add size-based rotation during a single uninterrupted session.

The log viewer also resets when a new session starts. Implemented in b656d388 and 07e1f8db.