def outLog(self,logLevel, userNo, userName, farmNo, farmName, componentNo, componentName, instanceNo, instanceName, code, instanceType, platformNo, additions): # イベントログメッセージの取得 message = getMassage(code, additions) log_table = Table("EVENT_LOG", METADATA2, autoload=True) log_table.insert([None, datetime.datetime.today(), self.LOGLEVEL[logLevel], userNo, userName, farmNo, farmName, componentNo, componentName, instanceNo, instanceName, code, message, instanceType, platformNo]).execute()
def outLog(self,logLevel, userNo, userName, farmNo, farmName, componentNo, componentName, instanceNo, instanceName, code, instanceType, platformNo, additions): # イベントログメッセージの取得 message = getMassage(code, additions) log_table = Table("EVENT_LOG", METADATA2, autoload=True) log_table.insert({"LOG_NO":None, "LOG_DATE":datetime.datetime.today(), "LOG_LEVEL":self.LOGLEVEL[logLevel], "USER_NO":userNo, "USER_NAME":userName, "FARM_NO":farmNo, "FARM_NAME":farmName, "COMPONENT_NO":componentNo, "COMPONENT_NAME":componentName, "INSTANCE_NO":instanceNo, "INSTANCE_NAME":instanceName, "MESSAGE_CODE":code, "MESSAGE":message, "INSTANCE_TYPE":instanceType, "PLATFORM_NO":platformNo}).execute()
def outLog(self, logLevel, userNo, userName, farmNo, farmName, componentNo, componentName, instanceNo, instanceName, code, instanceType, platformNo, additions): # イベントログメッセージの取得 message = getMassage(code, additions) log_table = Table("EVENT_LOG", METADATA2, autoload=True) log_table.insert({ "LOG_NO": None, "LOG_DATE": datetime.datetime.today(), "LOG_LEVEL": self.LOGLEVEL[logLevel], "USER_NO": userNo, "USER_NAME": userName, "FARM_NO": farmNo, "FARM_NAME": farmName, "COMPONENT_NO": componentNo, "COMPONENT_NAME": componentName, "INSTANCE_NO": instanceNo, "INSTANCE_NAME": instanceName, "MESSAGE_CODE": code, "MESSAGE": message, "INSTANCE_TYPE": instanceType, "PLATFORM_NO": platformNo }).execute()
def makeMassage(self, str = None, messid = None, *args): if isNotEmpty(str): return str else: return getMassage(messid, *args)
def end(self, *args): logger.info(getMassage("IaasGatewayEnd", *args))
def start(self, *args): logger.info(getMassage("IaasGatewayStart", *args))
def makeMassage(self, str=None, messid=None, *args): if isNotEmpty(str): return str else: return getMassage(messid, *args)
def __init__(self, massageid = None, *args): self.massageid = massageid self.param = args self.massage = getMassage(massageid, *args)