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

Periodically flush buffered file output #445

Merged
merged 23 commits into from
Dec 22, 2024

Conversation

swebb2066
Copy link
Contributor

This PR changes the FileWatchDog thread into a generic periodic task execution thread so that buffered output can be used more often.

The current FileAppender option BufferedIO significantly reduces logging overhead, but is not often used because the most recent log entries need to be accessable. This change delivers both the overhead reduction provided by BufferedIO=true and access to recent log entries.

The new FileAppender option BufferedSeconds (default value 5) provides user configuration control for this new behaviour.

@swebb2066 swebb2066 merged commit 976955b into master Dec 22, 2024
32 checks passed
@swebb2066 swebb2066 deleted the add_asynch_buffer_flush_option branch December 22, 2024 02:06
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.

2 participants