We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用最新版本的 slog 库,但没找到如何指定创建的 log 文件的权限。 默认是 0644,前面的 6 和 4 都还好,但最后一个 4 导致除了 owner/group 外的人也可以查看文件内容,这个不是很理想。 如何改为 0600 或 0700?
The text was updated successfully, but these errors were encountered:
默认是 rotatefile.DefaultFilePerm os.FileMode = 0664
rotatefile.DefaultFilePerm os.FileMode = 0664
是包 rotatefile 的全局变量,可以设置改变它
rotatefile
Sorry, something went wrong.
改用 WithXXX() 来修改是不是更好点?
WithXXX()
可以后续加个配置项 👍
请帮忙 review PR #103
✨ feat: add new option FilePerm for custom perm on create file. issues …
699ecd8
…#102
已经跟随 v0.5.2 发布调整了,新增了选项设置。
inhere
Successfully merging a pull request may close this issue.
使用最新版本的 slog 库,但没找到如何指定创建的 log 文件的权限。
默认是 0644,前面的 6 和 4 都还好,但最后一个 4 导致除了 owner/group 外的人也可以查看文件内容,这个不是很理想。
如何改为 0600 或 0700?
The text was updated successfully, but these errors were encountered: