Can anyone suggest a way in python to do logging with:
- log rotation every day
- compression of logs when they're rotated
- optional - delete oldest log file to preserve X MB of free space
- optional - sftp log files to server
Thanks for any responses, Fred
I think that the best option will be to use current implementation of
TimedRotatingFileHandler
and after renaming log file to the rotated version just compress it: