Skip to content

easytier日志文件生成问题 #38

@auqhjjqdo

Description

@auqhjjqdo

easytier自从v2.3.2版本开始支持了多配置文件加载功能,此功能会导致配置文件中的日志配置失效,具体见该issue:EasyTier/EasyTier#984

对easytier-manager的影响是通过表单进行的日志设置均不生效,日志文件并未生成,在工作台点击查看日志时始终为空白日志,且easytier-manager会报错提示找不到日志文件

ERROR [webview:iB]: Error reading file logs/easytier.2026-01-10:"failed to open file at path: \\\\?\\D:\\EasyTier\\logs\\easytier.2026-01-10 with error: 系统找不到指定的文件。 (os error 2)"
ERROR [webview:iB]: Error reading file logs/easytier.2026-01-10.log:"failed to open file at path: \\\\?\\D:\\EasyTier\\logs\\easytier.2026-01-10.log with error: 系统找不到指定的文件。 (os error 2)"
ERROR [webview:iB]: Error reading file logs/easytier.log:"failed to open file at path: \\\\?\\D:\\EasyTier\\logs\\easytier.log with error: 系统找不到指定的文件。 (os error 2)"

建议将表单修改配置中的日志设置移除,转移到easytier-manager设置中的日志与维护来配置日志等级等,按照上述issue中的暂行解决方法处理,启动easytier-core时添加--file-log-level--file-log-dir参数或使用ET_FILE_LOG_LEVELET_FILE_LOG_DIR环境变量

缺点是无法对日志数量和大小限制进行设置,在bug未解决的情况下暂时无解

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions