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

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