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

fix: last time's newest log file is not archived #335

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DenkevichOleg
Copy link

event "rotate" not emitted when app started, it may be have sense because literally rotate code doesn't run, only creating new file happen, but when it happen we can find path to last old log file in auditLog.files and then archive it. (#296 issue)

event "rotate" not emitted when app started, it may be have sense because literally rotate code doesn't run, only creating new file happen, but when it happen we can find path to last old log file in auditLog.files and then archive it. (winstonjs#296 issue)
@wbt
Copy link
Collaborator

wbt commented Feb 11, 2022

The newest log file is not archived so it can still be written to.

@DenkevichOleg
Copy link
Author

@wbt last time's newest log file is not archived* check #296 issue, last time's newest log file can still be written to, but never written to, when server restart - new file created, and last time's newest log file is not archived

@DenkevichOleg DenkevichOleg changed the title fix: newest log file is not archived fix: last time's newest log file is not archived Feb 15, 2022
@Apollon77
Copy link
Collaborator

While updating things I had a lok into this PR and must say that this is not the proper solution ... more a partly workaround. As soon as you look into there are several cases where this breaks ... and accessing internal datastructuires of the file rotator lib also is not really making sense. So we need to get this fix into the file rotate library

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

Successfully merging this pull request may close these issues.

3 participants