def set_log_level(self, lv):

        if lv in LOG_LEVELS:
            self.log_level = lv

        else:
            raise ValueError('argument lv is invalid. Choose from values in ErrorLv Class.')
dataset/ETHPy150Open iktakahiro/slackpy/slackpy/slackpy.py/SlackLogger.set_log_level/original