human
I wrote the below code

    logFiles = []
    oldFileLogObserver = logger.textFileLogObserver
    def observer(logFile, *args, **kwargs):
        logFiles.append(logFile)
        return oldFileLogObserver(logFile, *args, **kwargs)
    patch(logger, 'textFileLogObserver', observer)
    return logFiles

What's a good function header?
assistant
#Here's a good function header.

def _patchTextFileLogObserver(patch):