def logd(self, func, msg): #if self.debug: # log(self, func, msg) outStr = log_str(self, func, msg) if self.debug: # only used to filter messages to stdout, all messages are sent to logger if available print outStr if self.logger is not None: self.logger.debug(outStr)
def logi(self, func, msg): #log(self, func, msg) outStr = log_str(self, func, msg) print outStr if self.logger is not None: self.logger.info(outStr)
def loge(self, func, msg): outStr = log_str(self, func, msg) print outStr if self.logger is not None: self.logger.error(outStr)