[issue13516] Gzip old log files in rotating handlers

Vinay Sajip report at bugs.python.org
Sun Dec 11 23:42:18 CET 2011


Vinay Sajip <vinay_sajip at yahoo.co.uk> added the comment:

Some people might want other compression methods, e.g. bz2, zip, lzma ...

Have you considered subclassing the existing handler classes as in the following example?

http://code.activestate.com/recipes/502265-timedcompressedrotatingfilehandler/

Possibly I could change the implementation in 3.3 to make this easier to do ... I will give it some thought.

----------
assignee:  -> vinay.sajip

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13516>
_______________________________________


More information about the Python-bugs-list mailing list