Reopen log file if needed. Checks if the underlying file has changed, and if it has, close the old stream and reopen the file to get the current stream.
logging.handlers/WatchedFileHandler.reopenIfNeeded
WatchedFileHandler.reopenIfNeeded