-
Notifications
You must be signed in to change notification settings - Fork 19
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
log file locking issues? #6
Comments
If two sessions log to the same file at the same time, the content will be mixed . There is no way to distinguish the two sessions as it may change at any position. The data is treated as a stream and there is no interpretation of the content and thus no specific boundary. |
Thanks for the reply, @kbucheli If you don't mind me asking, how do you handle the log rotation and growth with so many potential files being generated? In my case there are dozens of logins each day, quickly exploding the number of files. |
Good question. We have the same kind of problem in our installation.
You may also have daily or by user directories.
Maybe I should add a hint like that to the documentation? |
That would be very helpful. I'm not familiar with |
With the default LogFile name, it seems that two sessions would rarely (or never) try to write to the same log at the same time.
However, the log file might be changed to
/var/log/user-session.log
to simplify file location. In that case, every session would try to write the same file. Will this case cause a problem either because only session can write to the file at a time, or with data loss with two sessions trying to write to the same log at the same time?The text was updated successfully, but these errors were encountered: