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
Feature Request: --savefirst
option
#585
Comments
I am not sure I understand what you mean by "save first log"; save before what exactly? |
When starting an application or subsystem, it logs. That's the "first log." Subsequently, due to logratate, the logging gets saved as (for example) Later, subsequent logging gets saved as The problem is that deleting |
Please consider adding a "save first log" option.
I've often encountered cases when analyzing a bug I find I'd like to see information from the initial log, to make sure all resources were initialized properly or get a handle from an object created at system startup.
I believe this isn't difficult to using
prerotate
orpostrotate
, but the solutions I can think of would be susceptible to problems if other options are changed (for example, compression format, causing the names of rotated files to change.) Also, the only methods I can think of would not be efficient (e.g., always copying ${1}.1 if it exists) or might interfere with logrotate's assumptions (moving ${1}.1 if it exists.)I've bumped into this in embedded systems so many times over the last 3 decades on different products at different companies, I'm surprised it's not a typical feature.
The text was updated successfully, but these errors were encountered: