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

Emit 'logRemoved' event for files which are removed from disk #100

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

Conversation

RopoMen
Copy link

@RopoMen RopoMen commented Feb 16, 2023

Currently this library is not emitting logRemoved event for files inside Audit JSON which are actually deleted from disk.

This causes issues for example in winston-daily-rotate-file which is providing gzip functionality and it compresses the original log files and then removes them from disk.

Now, because this remove event is not emitted winston-daily-rotate-file cannot delete those .gz files.

It is safe to emit this event because original log file is deleted. Whether deletion is done by file-stream-rotator or someone else.

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.

1 participant