def appendCountLog(self, name, count, severity): msg = Constants.toStringCount(name, Constants.COUNT, count, severity) try: self.appendLog(msg, severity) except Exception as error: monitorLog.logError("Failure append Count Log: " + msg, `error`) raise Exception("Failure to append Count log: " + msg)
def appendCountLog(self, name, metricType, count): msg = Constants.toStringCount(name, metricType, count) self.appendLog(msg)