code: def writeLog(self, network):
          
          if self.log:
              writeArray(self._logPtr, self.activation)
              if self._namePtr:
                  self._namePtr.write(network.getWord(self.activation))
                  self._namePtr.write("\n")
docs: Writes to the log file.