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

Method on LoggerHandle for manually forcing rotation? #147

Closed
newpavlov opened this issue Sep 6, 2023 · 0 comments
Closed

Method on LoggerHandle for manually forcing rotation? #147

newpavlov opened this issue Sep 6, 2023 · 0 comments

Comments

@newpavlov
Copy link

In my application I have commands for reading, copying, moving, and deleting log files. Right now it's implemented using existing_log_files, flush, reopen_output, and by working with files directly, but it's a bit too fragile for my taste. For example, I have to account for potential race conditions and partial writes.

It would be nice to have an ability to force rotation of current log files, so the application commands would work only with rotated files, thus skipping potential complications around current log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants