code: def writeLogToFile(self):
          
          if not os.path.exists(self.logFolder):
              os.mkdir(self.logFolder)
  
          with open(self.logFile, mode='a') as f:
              f.write('\n\n' + self.log)
docs: writes the log to a