I’m using standart logger library in Python. There are RotatingFileHandler, that can rotate log files dayily, for example.
But it just renames them. Will be great, if it can not only rename, but also put old files in zip (or gz, bzip, etc) archive.
Is there easy way to achieve this?
I think your best option is to extend RotatingFileHandler something like this (not tested):