Can anyone suggest a way in python to do logging with:
Here is my solution(modified from evgenek), simple and does not block python code while gzipping huge log files:
class GZipRotator: def __call__(self, source, dest): os.rename(source, dest) subprocess.Popen(['gzip', dest])