-
Notifications
You must be signed in to change notification settings - Fork 68
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
Keep same file name and archive files with timeStamp #44
Comments
Hi @rotosonic, The reason I didn't go down that route was to reduce the amount of work required when doing rotation and avoid issues moving/renaming files when doing the rotation. An alternative to this would be creating a symbolic link to the current file being written to with the option to specify what that name should be so if you wanted to see what the current file being written was you would just go to the filename specified when initialising the stream. Would that work? Roger |
After some testing, if a link already exists it won't overwrite it so I'd need to unlink the 'file' if it cannot complete the symbolic link creation. I'll run some benchmarks to see how much of an issue that is. |
Hi @rogerc , Do we have any update on this issue? Thanks |
Any news on this one? |
v0.5.0 will add a symbolic link to the current log file which you can access via current.log |
Is it possible to keep logging to a file with the same name and add a timeformat to archive files
The text was updated successfully, but these errors were encountered: