Open nehalkassem opened 7 years ago
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?
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
@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.
How can i change the file permissions for the generated log files? Example make it 0700 or 0600