Xray-core icon indicating copy to clipboard operation
Xray-core copied to clipboard

Log level mismatch

Open npwc opened this issue 3 years ago • 2 comments

log level in server configuration:

log:
  access: ''
  error: ''
  loglevel: error

log outputs:

Xray 1.6.6 (Xray, Penetrates Everything.) Custom (go1.19.4 linux/amd64)
A unified platform for anti-censorship.
2022/12/12 00:00:59 [Info] infra/conf/serial: Reading config: /etc/xray/config.yaml
2022/12/12 00:00:05 10.0.2.100:40418 accepted tcp:www.google.com:443 [direct]
2022/12/12 00:00:30 10.0.2.100:45864 accepted tcp:1.1.1.1:853 [direct]
2022/12/12 00:00:59 10.0.2.100:36424 accepted tcp:twitter.com:443 [socks]

expect:

only error level logs are output

npwc avatar Dec 12 '22 05:12 npwc

The first info log is before reading your config. After that you only see access log. Access log doesn't have levels.

yuhan6665 avatar Dec 12 '22 14:12 yuhan6665

The first info log is before reading your config. After that you only see access log. Access log doesn't have levels.

Is it possible to support the log level in the access log, or do you have any other idea?

npwc avatar Dec 13 '22 09:12 npwc

How to completely suppress access log?

Keroronsk avatar Nov 18 '23 19:11 Keroronsk