code: def log(self, *message):
          
          if self._logger is None:
              return
          s = " ".join([str(m) for m in message])
          self._logger.write(s+'\n')
          self._logger.flush()
docs: Logs a messate to a defined io stream if available.