-
-
Notifications
You must be signed in to change notification settings - Fork 324
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
Option to gzip log files. #314
Comments
If it isn't possible to gzip current logs, maybe just gzipping old ones would be fine. If you have logs set to rotate by day, week or month. When a new log file is made it can gzip the old ones. |
It should keep more than one ungzipped log file per buffer though, especially if logs are rotated by day. Maybe it could be a configuration option. |
Maybe just have weechat read the compressed log files using: zcat like other applications do. Using LOGROTATE(8) would simply handle this job. Logrotate is run as a daily cron job, and a user can set it up however they like. |
With ~500 MB of log data, I am interested in this possibility but would be concerned about losing the convenience of readily-available, universally viewable logs. |
Well, there is zcat and zgrep, and it could probably automatically (un-)gzip on next start if you change the option.Sent from my Android device with K-9 Mail. Please excuse my brevity. |
I have 2.0 GB worth of logs that're causing me some space issues right now, but I can't sacrifice the ability to easily search through them with In the meantime, a fork of the |
Implemented with 3 new options:
For now the rotation is only based on log size, and we can still use filename masks to split logs by date, see: https://weechat.org/files/doc/devel/weechat_user.en.html#logger_filenames_masks |
Just noticed my weechat logs are getting quite big, and figured I should gzip them to save space, but then thought maybe we can have weechat write to the files gzipped?
But is this even possible? By the nature of compression, I have a feeling it would not be, unless output is buffered and written in chunks... but I have no idea how gzip actually works :(
and on that note, maybe there is a better lib/algorithm for compressing a text stream?
Please & Thanks :)
The text was updated successfully, but these errors were encountered: