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

Open mode for log files: allow concurrent processes to change them #1070

Open
Andy-2639 opened this issue Jan 14, 2024 · 0 comments
Open

Open mode for log files: allow concurrent processes to change them #1070

Andy-2639 opened this issue Jan 14, 2024 · 0 comments

Comments

@Andy-2639
Copy link

Andy-2639 commented Jan 14, 2024

Feature Request

Version v3.0.0-alpha.11 (3.0.0+a6ba41681d84d84d95eb7a377c369d709e32225b)

Problem statement.
For inspecting logs, I copy the content of log files to another location and immediately truncate the original log file. So I know what I already looked through and log files keep small.
I know that this procedure is racy, that I can miss entries. But for my living room server and media computer, this is okayish enough.

Describe the solution you'd like.
Open the logfiles (.err.log, .out.log, .wrapper.log) in append mode and allow other processes to modify the file.
https://learn.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-openfile#parameters

Describe alternatives you've considered.
Stopping the service, copying, truncating the logs, and restating the service means a downtime.

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

No branches or pull requests

1 participant