I'm trying to log to a file and move it about every 30 seconds.  I'm using the os.rename function (which I do from a supervisord process) in python to move the current log to a timestamped log (which will then be processed by another python script) and then I continue to log to the old stream from my uwsgi server.  I've also tried the RotatingFileHandler and the timed version, but they don't seem to work properly.  I wasn't sure if that was a function of using it with the uwsgi server or not.My question is, what is the simplest and most efficient way to continue logging to the same file name after the file it was pointing to has been moved?
Maintaining log stream after file name change
python;logging;file handling