(I have searched and not found a duplicate for this question but happy to be proved otherwise).
I need to rotate a log from within some Python code. The code is running on Windows (Server 2008 R2).
Initially I used TimedRotatingFileHandler
(from Python's logging.handlers package) but this doesn't work as we need due to what I understand is an issue it has with multi-processing (subprocess.check_call is used to kick off another application).
I have checked out ConcurrentLogHandler which looks like it might do the job but I'm a bit concerned that it hasn't been updated since 2013 (although issues have been raised more recently).
UPDATE: an open bug (since 2013) indicates that ConcurrentLogHandler does not work with Python 2.7/Windows. On logging, the code just hangs.
Is there a best practice Windows solution I should be using?