Skip to content

access.log is always growing #168

Description

@Lurker00

Even if I set log level to None, access.log continues growing with information of each connection.

I understand that the logs are written by XRayCore.dll, which is not under your control. But your wrapper provides fully qualified log file names to the library and a log type. Could you provide log.LogType_None as AccessLogType for log level 'None'? Or, if it does not work, provide just "nul:" as AccessLogPath? Sorry, I can't check it myself right now.

My current workaround is \\.\NUL\null as the log path, but it is not convenient for most of users.

Activity

  1. InvisibleManVPN commented on Jan 5, 2025

    @InvisibleManVPN
    Owner

    Hey @Lurker00!
    That's a good suggestion. We just need to set log.LogType_None for both AccessLogType and ErrorLogType once we choose None (See config.go)

    The same thing exists in the xray source: (see log.go)

  2. InvisibleManVPN commented on Feb 2, 2025

    @InvisibleManVPN
    Owner

    @Lurker00 Refer to #172, this problem will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions