code: def setup_logging(self, log_level):
          
          if not log_level:
              return
  
          # Remove existing logger.
          self.app.config["LOGGER_HANDLER_POLICY"] = "never"
          self.app.logger.propagate = True
  
          handler = logging.StreamHandler()
          handler.setFormatter(logging.Formatter(self.LOG_FORMAT))
          self.app.logger.addHandler(handler)
          self.app.logger.setLevel(logging.getLevelName(log_level))
          self.app.logger.info("Logging initialized.")
docs: Setup logging.