def _patchFileLogObserver(patch):
 logFiles = []
 oldFileLobObserver = log.FileLogObserver
 def FileLogObserver(logFile):
  logFiles.append(logFile)
  return oldFileLobObserver(logFile)
 patch(log, 'FileLogObserver', FileLogObserver)
 return logFiles

def _patchFileLogObserver ( patch ) : logFiles = [ ] oldFileLobObserver = log . FileLogObserver def FileLogObserver ( logFile ) : logFiles . append ( logFile ) return oldFileLobObserver ( logFile ) patch ( log , 'FileLogObserver' , FileLogObserver ) return logFiles
patch l{log .