code: def setup_logging(self):
          
          if self.config.debug:
              util.setup_logging(level=logging.DEBUG)
              util.activate_debug_shell_on_signal()
          else:
              util.setup_logging(level=logging.INFO)
docs: Configure the logging framework.