parameters: (self, change)
docstring: Adjust the log level when log_level is set.
docstring_summary: Adjust the log level when log_level is set.
docstring_tokens: Adjust the log level when log_level is set .
function: def _log_level_changed(self, change):
          """Adjust the log level when log_level is set."""
          new = change.new
          if isinstance(new, str):
              new = getattr(logging, new)
              self.log_level = new
          self.log.setLevel(new)
function_tokens: def _log_level_changed ( self , change ) : new = change . new if isinstance ( new , str ) : new = getattr ( logging , new ) self . log_level = new self . log . setLevel ( new )