-
Notifications
You must be signed in to change notification settings - Fork 127
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
[package request]: logrotate #2657
Comments
the issue with logrotate is that it's inherently bad design that's impossible to fix (it's racey; it's impossible to reconcile log rotation and logging in separate processes, as the rotator cannot "pause" logging for when the logger is doing its thing, which can lead to wacky and potentially dangerous scenarios) we have plans to revamp logging entirely with some new solution that will be builtin to the system, similarly to how systemd-journal works, though it will take some time to materialize |
Hmm, I think the |
i already ruled that out ages ago for a variety of reasons |
I get that there are issues with logrotate, though every time I’ve ever seen an actual problem arise from using it it’s pretty much invariably the fault of whatever is logging doing questionable things that would be risky no matter what is trying to work with the log files. It also happens to work just fine for a majority of users in a majority of cases (because while there are a number of edge cases, most users will never actually encounter them), hence why it’s what I was suggesting here. If the consensus is that those cases where it doesn’t work are so bad that it’s impossible to justify including it, might I suggest that the syslog-ng configuration that Chimera ships be changed so that it handles log rotation (because that actually is something syslog-ng can do if you use timestamps as part of the file templating), at least until whatever new system is being implemented is actually implemented? People generally expect to not need to manually rotate log files on Linux these days. |
this seems like a good thing to put in the default config, yeah |
hm, how do you set this up? syslog-ng configuration is.. hard to find specifics on, and there's nothing seemingly 'explicitly' rotation-related the first thing i'd assume that means is to log to |
Yes, that functionality is what I was referring to. I believe you want |
logrotate is the de-facto standard on Linux (and to a lesser extent other UNIX_like systems) for managing log file rotation, which is in turn a core part of sane system administration.
There appears to have been a previous attempt a few weeks ago to add logrotate in #2222 that was closed without any comments as to why by both the contributor who opened the PR or anybody else.
The text was updated successfully, but these errors were encountered: