Skip to content
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

old log file permission mode should be read-only for security? #29

Open
chenwei113524 opened this issue Dec 23, 2021 · 4 comments
Open

Comments

@chenwei113524
Copy link

when log file is rotated, the log file new the same permission mode w+r. the history log file should change to a read-only mode or allow to set file mode?

@tianxiaoliang
Copy link
Member

great idea, would u like to contribute this feature

@chenwei113524
Copy link
Author

可以弄个定时任务,定时修改rotate日志权限吗?我看service-center 1.2.0 是这样处理rotate日志
image

@tianxiaoliang
Copy link
Member

rotate是有lumberjack这个三方库提供的,看看修改点在哪里,如果lumberjack有参数可配置就更好了,或许我们只是没发现这个参数。

@tianxiaoliang
Copy link
Member

rotate是有lumberjack这个三方库提供的,看看修改点在哪里,如果lumberjack有参数可配置就更好了,或许我们只是没发现这个参数。

假如没这个参数,我建议在lumberjack找到这个修改点,贡献这个开源库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants