Skip to content

Feat: Allow Keep Buffer Accross ReOpen, Allow Closing File While Waiting, Add ReOpen Backoff Configuration#84

Open
EliSauder wants to merge 5 commits intonxadm:masterfrom
EliSauder:master
Open

Feat: Allow Keep Buffer Accross ReOpen, Allow Closing File While Waiting, Add ReOpen Backoff Configuration#84
EliSauder wants to merge 5 commits intonxadm:masterfrom
EliSauder:master

Conversation

@EliSauder
Copy link
Copy Markdown

This is useful for cases where a file writer writes part of a line, rotates the file, then writes the rest of the line.

This is useful for cases where a file writer writes part of a line,
rotates the file, then writes the rest of the line.
NOTE: Doesn't current pass all tests
@EliSauder
Copy link
Copy Markdown
Author

EliSauder commented Apr 30, 2026

Also added the ability to close the file while waiting for modifications. Inspired by both an issue I had on Windows and the PowerShell Get-Content -Wait logic defined here: https://github.com/PowerShell/PowerShell/blob/master/src/System.Management.Automation/namespaces/FileSystemContentStream.cs

Issue I had:
Whenever I would start tailing a log file created by a piece of vendor created software, the log file would stop updating.

@EliSauder EliSauder changed the title feat(tail): allow keeping line buffer accross reopening files Feat: Allow Keep Buffer Accross ReOpen, Allow Closing File While Waiting, Add ReOpen Backoff Configuration Apr 30, 2026
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