code: def record_command(self, cmd, prg=''):
          
          self._log(self.logFileCommand , force_to_string(cmd), prg)
docs: record the command passed - this is usually the name of the program
          being run or task being run