def logError(self, msg): error = "<font color='red'>Error: </font>" self.logBrowser.append(utils.getTimeStr() + error + msg)
def log(self, msg): self.logBrowser.append(utils.getTimeStr() + msg)
def logSuccess(self, msg, clock): success = "<font color='green'>Success: </font>" clockStr= "<i> " + str(clock) + "</i>" self.logBrowser.append(utils.getTimeStr() + success + msg + clockStr)
def log(text, stopwatch = None, time = True): time = time and args.timestamp if verbose: stopwatchStr = str(stopwatch) if stopwatch else "" timeStr = utils.getTimeStr() if time else "" print timeStr + text + " " + stopwatchStr
def logSuccess(self, msg, clock): success = "<font color='green'>Success: </font>" clockStr = "<i> " + str(clock) + "</i>" self.logBrowser.append(utils.getTimeStr() + success + msg + clockStr)
def log(text, stopwatch=None, time=True): time = time and args.timestamp if verbose: stopwatchStr = str(stopwatch) if stopwatch else "" timeStr = utils.getTimeStr() if time else "" print timeStr + text + " " + stopwatchStr