writes the log to a

def writeLogToFile(self):
        """
        writes the log to a
        """
        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)