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

How to change file permissions for log file #138

Open
nehalkassem opened this issue Dec 20, 2016 · 3 comments
Open

How to change file permissions for log file #138

nehalkassem opened this issue Dec 20, 2016 · 3 comments

Comments

@nehalkassem
Copy link

How can i change the file permissions for the generated log files? Example make it 0700 or 0600

@pkorotkov
Copy link
Collaborator

Hi @nehalkassem
Currently file/directory permissions are hardcoded and not intended to be modified from outside. I suggest a straightforward solution: use OS utils (like Unix chmod) for freshly generated log files. Does it work for you?

@nehalkassem
Copy link
Author

Thank you for getting back to me, I use the rollingwriter so this will generate files and I have no control on when the files gets generated. i tried to change the hardcoded file permission value but that didn't change anything. Can you please tell me where are the places that has the file permissions set? All I found is in internals_fsutils.go constant defaultFilePermissions

@pkorotkov
Copy link
Collaborator

@nehalkassem Seelog's internals_fsutils.go is really the only place where those settings reside. Since you played around file permissions with no-good, I can also recommend you to check system umask.

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