def log(self, str_level, str_message): ''' [Function]: Add KCS prefix before pass the message to the Logger class [Input ]: str_level - the log level str_message - the log information [Output ]: Will write log in to log file ''' str_message = '(KCS: %s)%s' % (self.str_ip, str_message) return CLogger.log(self, str_level, str_message)
def log(self, str_level, str_message): str_message = '(%s) %s' % (self.str_sub_type, str_message) CLogger.log(self, str_level, str_message) return 0
def log(self, str_level, str_message): str_message = '(COM%d) %s' % (self.int_port + 1, str_message) return CLogger.log(self, str_level, str_message)