Relative Content

Tag Archive for logging

Maintaining log stream after file name change

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.

Maintaining log stream after file name change

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.