code: def set_log_level(self, level, keep=True):
          
          self._set_log_level(level)
          self._log_level_set_explicitly = keep
docs: Set the log level. If keep is True, then it will not change along with
          global log changes.