def set_log_level(self, log_level): """ 设置logger的日志级别 @type log_level: int @param log_level: one of logging.DEBUG,logging.INFO,logging.WARNING,logging.ERROR,logging.CRITICAL """ CMQLogger.validate_loglevel(log_level) self.logger.setLevel(log_level) self.cmq_client.set_log_level(log_level)
def set_log_level(self, log_level): if self.logger: CMQLogger.validate_loglevel(log_level) self.logger.setLevel(log_level) self.http.set_log_level(log_level)