code: def setLog(self, fileName, writeName=False):
          
          self.log = 1
          self.logFile = fileName
          self._logPtr = open(fileName, "w")
          if writeName:
              self._namePtr = open(fileName + ".name", "w")
docs: Opens a log file with name fileName.