def logInfo(self, msg, end='\n', timestamp=True): """ Description An internal function to print info to stdout Parameters msg: (str): The message to print. """ currentTime = self.getTime() if timestamp: msg = '\n' + currentTime + ': ' + msg else: # No timestamp and no newline are mainly for verifying states and status msg = msg print('{0}'.format(msg), end=end) if self.generateRestLogFile != False: with open(self.restLogFile, 'a') as restLogFile: restLogFile.write(msg+end) if self.robotFrameworkStdout: self.robotLogger.log_to_console(msg)