Add compression and archive options to log settings
Posted: August 31st, 2008, 5:49 pm
- Add compression options (gzip and bzip2)
- Add additional rotation options (by time)
Might be useful to adopt the more traditional [linux] log methodology of 'archive and compress' when rotating logs. It would be cool to see both gzip and bzip2 as compression options.
This is of course much easier on Linux since most standard installations usually install gzip and bzip2 by default. Not sure how that works on Windows. OS X might also include gzip and/or bzip2 by default, but not sure there either.
One thing that this might affect is the log rotation scheme. Looks like the current scheme is by size, which I think should be OK as long as it's looking at pre-compression sizes. It might also be useful to allow users to rotate by time as well, such as rotate every day/x days/week/etc.
- Add additional rotation options (by time)
Might be useful to adopt the more traditional [linux] log methodology of 'archive and compress' when rotating logs. It would be cool to see both gzip and bzip2 as compression options.
This is of course much easier on Linux since most standard installations usually install gzip and bzip2 by default. Not sure how that works on Windows. OS X might also include gzip and/or bzip2 by default, but not sure there either.
One thing that this might affect is the log rotation scheme. Looks like the current scheme is by size, which I think should be OK as long as it's looking at pre-compression sizes. It might also be useful to allow users to rotate by time as well, such as rotate every day/x days/week/etc.