(I searched and did not find a duplicate for this question, but I am happy that it will be proved otherwise).
I need to rotate the log from some Python code. The code runs on Windows (Server 2008 R2).
I originally used TimedRotatingFileHandler(from the Python package logging.handlers), but this does not work as we need it because of what I understand, it is a problem that it encounters multiprocessing (subprocess.check_call is used to run another attachment).
I checked ConcurrentLogHandler, which looks like it can do the job, but I'm a little worried that it has not been updated since 2013 (although problems have been raised quite recently).
UPDATE : open error (since 2013) indicates that ConcurrentLogHandler is not working with Python 2.7 / Windows. When registering, the code just freezes.
Is there a better windows solution I should use?
azp74 source
share