-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
[Docs] Logging Configuration - Use logrotate
Instead
#9930
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
[Docs] Logging Configuration - Use logrotate
Instead
#9930
Conversation
logrotate
Insteadlogrotate
Instead
Codecov Report
@@ Coverage Diff @@
## master #9930 +/- ##
=======================================
Coverage 42.26% 42.26%
=======================================
Files 608 608
Lines 79411 79411
=======================================
Hits 33566 33566
Misses 41702 41702
Partials 4143 4143 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wording nits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIU this technique could still cause loss of logs.
If we genuinely want to support logrotate we will need some way of halting log output and then reopening it. That would need probably need tying into graceful as a currently unused signal (SIGUSR1 is free but there might be a better one) or by adding another command and private endpoint.
The only safe other options other than using our logging controls, are to use rotatelog from Apache by writing to a pipe or write logs to syslog through systemd
@zeripath perhaps blocking this PR until halting log output implementation done? |
Yup that's what my request changes does. Unless others disagree and want this merged or the wording is changed to add a sufficient warning - it can't be merged. |
Codecov Report
@@ Coverage Diff @@
## master #9930 +/- ##
=========================================
Coverage ? 42.26%
=========================================
Files ? 608
Lines ? 79411
Branches ? 0
=========================================
Hits ? 33561
Misses ? 41709
Partials ? 4141
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now #11777 has been merged we can finally move forward with this. I expect that the below wording is not the best but it is an example of the kind of thing we need to add.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK now we have merged my PR causing release and reopen, and updated this - I think we're good to go.
🚀 |
As @techknowlogick suggest on #9866, I added notes to
Logging Configurations
iflogrotate
is about to be used instead of built-in implementation.When this PR is merged, it will be automatically close #9866.