human
Complete this python program:
def _patchFileLogObserver(patch):
assistant
#Here is the Python code you requested.

    """Patch L{log.FileLogObserver} to record every call and keep a reference to
    the passed log file for tests.
    @param patch: a callback for patching (usually L{unittest.TestCase.patch}).
    @return: the list that keeps track of the log files.
    @rtype: C{list}
    """
    logFiles = []
    oldFileLobObserver = log.FileLogObserver
    def FileLogObserver(logFile):
        logFiles.append(logFile)
        return oldFileLobObserver(logFile)
    patch(log, 'FileLogObserver', FileLogObserver)
    return logFiles