-
Notifications
You must be signed in to change notification settings - Fork 39
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
Cleanup and compress on application closing #39
Comments
Hi @jspaeth20 , that it is the right method to close the stream; probably its better to wait for the Hope this helps, |
I am having a similar issue, in that when the application shuts down (cancelled), the last file it was writing to is not recorded in the history file - which is a problem, because I am using the immutable flag with a filename based on date-time to the millisecond, so when it starts up, it generates a new file name and starts writing to it, when that file is rotated it is added to the history file, but it skips the one that was open when the application died - so it is never cleaned up. Eg run 1: Result is that FileC is never removed because it was never recorded in the history file. Is there some event I should be hooking into to ensure the last open log file is recorded before the application ends? |
Hi @puzsol , crystal clear! I'll check it soon. |
Is there a way to cleanup when the application is closing. I am currently calling the writable.end() method but that doesn't handle the compression of the current stream?
The text was updated successfully, but these errors were encountered: