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()
Ejemplo n.º 3
0
    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()
Ejemplo n.º 4
0
 def makeMassage(self, str = None, messid = None, *args):
     if isNotEmpty(str):
         return str
     else:
         return getMassage(messid, *args)
Ejemplo n.º 5
0
 def end(self, *args):
     logger.info(getMassage("IaasGatewayEnd", *args))
Ejemplo n.º 6
0
 def start(self, *args):
     logger.info(getMassage("IaasGatewayStart", *args))
Ejemplo n.º 7
0
 def makeMassage(self, str=None, messid=None, *args):
     if isNotEmpty(str):
         return str
     else:
         return getMassage(messid, *args)
Ejemplo n.º 8
0
 def end(self, *args):
     logger.info(getMassage("IaasGatewayEnd", *args))
Ejemplo n.º 9
0
 def start(self, *args):
     logger.info(getMassage("IaasGatewayStart", *args))
Ejemplo n.º 10
0
 def __init__(self, massageid = None, *args):
     self.massageid = massageid
     self.param = args
     self.massage = getMassage(massageid, *args)